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.
Questions tagged [paging]
2459 questions
118
votes
13 answers
Paging with LINQ for objects
How would you implement paging in a LINQ query?
Actually for the time being, I would be satisfied if the sql TOP function could be imitated. However, I am sure that the need for full paging support comes up sooner later anyway.
var queryResult =…

user256890
- 3,396
- 5
- 28
- 45
115
votes
4 answers
Getting total row count from OFFSET / FETCH NEXT
So, I've got a function that returns a number of records that I want to implement paging for on my website. It was suggested to me that I use the Offset/Fetch Next in SQL Server 2012 to accomplish this. On our website, we have an area that lists…

CrystalBlue
- 1,793
- 5
- 18
- 27
113
votes
2 answers
How does x86 paging work?
This question is meant to fill the vacuum of good free information on the subject.
I believe that a good answer will fit into one big SO answer or at least in a few answers.
The main goal is to give complete beginners just enough info so that they…

Ciro Santilli OurBigBook.com
- 347,512
- 102
- 1,199
- 985
88
votes
6 answers
MongoDB - paging
When using MongoDB, are there any special patterns for making e.g. a paged view?
say a blog that lists the 10 latest posts where you can navigate backwards to older posts.
Or do one solve it with an index on e.g. blogpost.publishdate and just skip…

Roger Johansson
- 22,764
- 18
- 97
- 193
76
votes
10 answers
How to get distinct results in hibernate with joins and row-based limiting (paging)?
I'm trying to implement paging using row-based limiting (for example: setFirstResult(5) and setMaxResults(10)) on a Hibernate Criteria query that has joins to other tables.
Understandably, data is getting cut off randomly; and the reason for that is…

Daniel Alexiuc
- 13,078
- 9
- 58
- 73
74
votes
8 answers
Pagination in Spring Data JPA (limit and offset)
I want the user to be able to specify the limit (the size of the amount returned) and offset (the first record returned / index returned) in my query method.
Here are my classes without any paging capabilities.
My entity:
@Entity
public Employee {
…

chinesewhiteboi
- 1,045
- 1
- 10
- 10
69
votes
1 answer
Do x86 instructions require their own encoding as well as all of their arguments to be present in memory at the same time?
I am trying to figure out whether it is possible to run a Linux VM whose RAM is only backed by a single physical page.
To simulate this, I modified the nested page fault handler in KVM to remove
the present bit from all nested page table (NPT)…

savvybug
- 792
- 4
- 7
61
votes
9 answers
Dapper. Paging
I am trying Dapper ORM and I am querying a a Posts table.
But I would like to get paged results ...
1 - How can I do this? Isn't there a helper for this?
2 - Can Dapper Query return an IQueryable?
Thank You,
Miguel

Miguel Moura
- 36,732
- 85
- 259
- 481
58
votes
6 answers
Calculating Page Table Size
I'm reading through an example of page tables and just found this:
Consider a system with a 32-bit logical address space. If the page size in such a system is 4 KB (2^12), then a page table may consist of up to 1 million entries (2^32/2^12).…

mino
- 6,978
- 21
- 62
- 75
54
votes
4 answers
How does multi-level page table save memory space?
I am trying to understand how multi-level page table saves memory. As per my understanding, Multi-level page table in total consumes more memory than single-level page table.
Example : Consider a memory system with page size 64KB and 32-bit…

Anil Kumar K K
- 1,395
- 1
- 16
- 27
54
votes
11 answers
Start UICollectionView at a specific indexpath
I currently have a collection view that does horizontal paging where each cell is fullscreen. What I want to do is for the collectionview to start at a specific index when it shows.
Right now I'm using…

Zack
- 881
- 1
- 9
- 13
49
votes
5 answers
How can I make shift+spacebar page up in Vim?
I have an entry in my .vimrc which makes it page down the viewport when I hit the spacebar. It looks like this:
map
I want to create another key mapping which pages the viewport up when holding shift and hitting the spacebar. I…

jerodsanto
- 9,726
- 8
- 29
- 23
48
votes
2 answers
Understanding Virtual Address, Virtual Memory and Paging
I've been learning these topics and read many articles and books but they all lack some complementary information and confused me even more. So here, I’d like to explain what I know while I am asking my questions. Hopefully, this topic will be…

Tarik
- 79,711
- 83
- 236
- 349
47
votes
6 answers
Why is the page size of Linux (x86) 4 KB, how is that calculated?
The default memory page size of the Linux kernel on x86 architecture was 4 KB, I wonder how was that calculated, and why ?

daisy
- 22,498
- 29
- 129
- 265
45
votes
6 answers
How to use GWT 2.1 Data Presentation Widgets
At the 2010 Google IO it was announced that GWT 2.1 would include new Data Presentation Widgets. 2.1M is available for download, and presumably the widgets are included, but no documentation has yet surfaced.
Is there a short tutorial or example for…

George Armhold
- 30,824
- 50
- 153
- 232