Questions tagged [paging]

A memory-management technique where a computer stores and retrieves data from secondary storage for use in main memory. Memory is divided into equal sized pages so to not waste any memory.

2459 questions
11
votes
2 answers

Empty collection and HTTP headers Content-Range

How can we handle empty collection on a RESTful interface, with Content-Range's items header? For instance, having 42 records, a request Range: items=0-41 would return everything, and the response header would be: Content-Range: items…
T5i
  • 1,470
  • 1
  • 18
  • 34
11
votes
1 answer

AngularJS Paging orderBy only affects displayed page

Can anyone point me in the right direction to figure out a way to fix the way paging and orderBy work together in Angular? Currently, I can orderBy and page the results of the data[], but the orderBy filter only affects the each page individually.…
Logan W
  • 1,367
  • 3
  • 18
  • 24
11
votes
1 answer

Offset Fetch Next to get all rows

I have a query in SQL Server 2012 that should get back a number of records based on the page size I specify and the page it is on. It looks like this: SELECT LocID, LocName FROM Locations ORDER BY LocName OFFSET @PageNum ROWS FETCH NEXT @PageSize…
CrystalBlue
  • 1,793
  • 5
  • 18
  • 27
10
votes
2 answers

Tridion pagination - getting the total number of results

We are writing some code to control the pagination of results returned from a Tridion Broker database query (using the API). We are using SDL Tridion 2011 SP1 and can use the PagingFilter to get the tcmIds of just the Components on the selected…
Jonathan Williams
  • 2,015
  • 1
  • 19
  • 23
10
votes
1 answer

Linq & Paging - Unable to return paged data with an OrderBy

I've been trying to implement a simple paging system on a WCF service I've written that uses Linq To SQL To query a database but seem to be going from one problem to another. I want the WCF Service to return a list of this…
GrandMasterFlush
  • 6,269
  • 19
  • 81
  • 104
10
votes
5 answers

Efficient Paging (Limit) Query in SQLServer 2000?

What would be the most efficient way to do a paging query in SQLServer 2000? Where a "paging query" would be the equivalent of using the LIMIT statement in MySQL. EDIT: Could a stored procedure be more efficient than any set based query in that…
Loki
  • 29,950
  • 9
  • 48
  • 62
10
votes
1 answer

.rodata section loaded in executable page

So out of curiosity, I tried to run this code today (compiled with gcc -m32 1.c): int main(void) { // EB is the opcode for jmp rel/8 // FE is hex for -2 // So this is essentially an infinite loop …
Andrew Sun
  • 4,101
  • 6
  • 36
  • 53
10
votes
3 answers

Aligning virtual address to immediate next page boundary

I came across following algorithm that aligns virtual address to immediate next page bounday. VirtualAddr = (VirtualAddr & ~(PageSize-1)); Also, given a length of bytes aligns length (rounds it) to be on the page boundary len = ((PageSize-1)&len) ?…
Steve H
  • 461
  • 2
  • 10
  • 18
10
votes
2 answers

Can the Linux kernel use pageable (swappable) memory for its own buffers?

If the answer to the question is NO, why is it not a good idea to do this? Can the kernel not handle and fix page faults that occur in kernel mode? Does the answer change if the code that uses pageable memory only executes as part of the bottom-half…
Mayank
  • 1,236
  • 1
  • 12
  • 22
9
votes
2 answers

Facebook graph API loop through paging

So I was working with this script to loop through the events from a given page. Suddenly I find it doesn't work anymore :( I have a feeling it could be a bug, because if you pick any page, view events with an access_token, you can't get any data…
Nathan Waters
  • 1,173
  • 4
  • 13
  • 23
9
votes
3 answers

LINQ To SQL Paging

I've been using .Skip() and .Take() extension methods with LINQ To SQL for a while now with no problems, but in all the situations I've used them it has always been for a single table - such as: database.Users.Select(c => c).Skip(10).Take(10); My…
Martin
  • 425
  • 1
  • 6
  • 11
9
votes
0 answers

Multiple Checkbox selection using Webgrid in MVC 3 (select All/Deselect All), Sorting and Paging

If you are wondering how to make multiple checkboxes and Multiple checkbox selection (select All or Deselect All),paging, sorting in a MVC3 Webgrid, here is the solution: To Simplify, It has the following features: Checkbox in the webgrid Multiple…
Ravi Ganesan
  • 99
  • 1
  • 1
  • 3
9
votes
3 answers

Problem UIScrollView pagingenabled in IOS 3.1.3

I have set paging property of scroll view to 'scrollview.pagingEnabled = YES'. When tested it seems to be working in IOS 4 and above but it is not working on iOS 3.1.3. Can any one help me with this?
PgmFreek
  • 6,374
  • 3
  • 36
  • 47
9
votes
2 answers

caches vs paging

So I'm in a computer architecture class, and I guess I'm having a hard time differentiating between caching and pages. The only explanation I can come up with is that pages are the OS's way of tricking a program that it's doing all it's work in a…
onaclov2000
  • 5,741
  • 9
  • 40
  • 54
9
votes
2 answers

UIScrollView snap-to-position while scrolling

I am trying to implement a scroll view that snaps to points while scrolling. All the posts here I've seen about snapping to a point 'after' the user has ended dragging the scroll. I want to make it snap during dragging. So far I have this to stop…
Gizmodo
  • 3,151
  • 7
  • 45
  • 92