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
6
votes
2 answers

PagedDatasource for gridview paging

I am using PagedDataSource for gridview's custom paging. Here is the code: PagedDataSource dataSource = new PagedDataSource(); int virtualRowCount = Convert.ToInt32(dataset.Tables[1].Rows[0]["TotalRows"]); dataSource.AllowCustomPaging =…
Jaggu
  • 6,298
  • 16
  • 58
  • 96
6
votes
4 answers

How does StackOverflow optimise the performance for the display of the questions?

I am trying to learn C#.net to program a web app. And having learned that stackoverflow uses C#.net I am happy to discover it. I noticed that at the home page or at the questions section, whenever I refresh the page. The page always returns me the…
Kim Stacks
  • 10,202
  • 35
  • 151
  • 282
6
votes
3 answers

Why does x86 paging have no concept of privilege rings?

Back in 1982, when Intel released the 80286, they added 4 privilege levels to the segmentation scheme (rings 0-3), specified by 2 bits in the Global Descriptor Table (GDT) and Local Descriptor Table (LDT). In the 80386 processor, Intel added paging,…
DarkAtom
  • 2,589
  • 1
  • 11
  • 27
6
votes
1 answer

Android paging 3: It is possible to get the itemcount from PagingData?

how am I able to get the current amount of items, that my PagingData holds? The only solution I found was to call shopListAdapter.itemCount but this always returns 0. What I am trying to do is: Get the current amount of items that are…
Andrew
  • 4,264
  • 1
  • 21
  • 65
6
votes
3 answers

Paging or segmentation for virtual memory, which is better?

Most OSes use paging for virtual memory. Why is this? Why not use segmentation? Is it just because of a hardware issue? Is one better than the other in certain cases? Basically, if you had to choose one over the other, which one would you want to…
Matt
  • 7,049
  • 7
  • 50
  • 77
6
votes
3 answers

What is paging?

Paging is explained here, slide #6 : http://www.cs.ucc.ie/~grigoras/CS2506/Lecture_6.pdf in my lecture notes, but I cannot for the life of me understand it. I know its a way of translating virtual addresses to physical addresses. So the virtual…
John Curtsy
  • 541
  • 3
  • 8
  • 15
6
votes
1 answer

Inconsistent results from setting the fetchOffset of NSFetchRequest in CoreData

I have the method below which gets a page of CoreData entities out. When I pass in a value for start I get inconsistent results. Sometimes it will page as I would expect, other times it really really doesn't. It seems to get results from…
Matt Fellows
  • 6,512
  • 4
  • 35
  • 57
6
votes
5 answers

ASP.net Gridview Paging doesin't work inside UpdatePanel

Although, questions somehow similar to this have been asked for a number of times, but the question is still unsolved. Here is the question: I have a GridView which is contained in a tab container AJAX control which itself is inside an UpdatePanel.…
Farshid
  • 5,134
  • 9
  • 59
  • 87
6
votes
2 answers

How to integrate Android Paging Library with NetworkBoundResource

My app is using Android's Architecture components library and is displaying a list of items fetched from a paginated REST api with an infinite scroll effect. What I'm trying to do is to use the Paging Library in conjunction with a…
6
votes
1 answer

A significant part of SQL Server process memory has been paged out

I have 512 GB of memory on my physical box, out of which 85% is dedicated to SQL Server. I'm starting to get this message in error log. When this happens, SQL Server closes connection to other processes or users. Any guidance on what should I do…
user287281
  • 61
  • 1
  • 1
  • 2
6
votes
2 answers

What is the best practice of sorting data with paging, on Business Tier or Database Tier?

It might be a frequently asked question, however so far i couldn't find a convincing answer. In my project, I need to do paging for a set of around 20,000+ records which is a joined result from multiple tables, and it need to be sorted differently…
D.J
  • 2,534
  • 4
  • 28
  • 43
6
votes
1 answer

PAE in x86-64 bit processors - Linux kernel

I have noticed that the PAE bit in the CR4 register is turned on my Linux (3.19) x86-64 machine. The PAE feature allows physical addresses up to 64gb to be accessed but I do not understand why it is needed when long-mode is enabled. I have looked it…
Rouki
  • 2,239
  • 1
  • 24
  • 41
6
votes
3 answers

c++ heavy data processing and paging

I'm writing an application that should process large ammounts of data (between 1-10 GB) as realtime as possible. the data is present in multiple binary data files on harddisk, each between few kb and 128MB. when the process starts, first it is…
Mat
  • 2,713
  • 5
  • 25
  • 25
6
votes
1 answer

How do I lazy load 100+ pages in a UIScrollView with paging enabled?

I'm creating a comicbook-like application. I'm using a UIScrollView with paging enabled to display the hi-res full-screen images (the app works similar to Photos.app but with zooming disabled). The final product will have nearly 200 images that need…
user2393462435
  • 2,652
  • 5
  • 37
  • 45
6
votes
5 answers

Segmentation in Linux : Segmentation & Paging are redundant?

I'm reading "Understanding Linux Kernel". This is the snippet that explains how Linux uses Segmentation which I didn't understand. Segmentation has been included in 80 x 86 microprocessors to encourage programmers to split their applications…
claws
  • 52,236
  • 58
  • 146
  • 195