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
12
votes
1 answer

Passing data to PageKeyedDataSource

I am using PageKeyedDataSource to make paging by calling an API and using Retrofit. And I am using Dagger 2 to make the dependency injection. @Provides Repository provideRepository(...) { ... } @Provides PageKeyedVideosDataSource…
Soon Santos
  • 2,107
  • 22
  • 43
12
votes
2 answers

Do Docker containers on the same host machine share the same page cache?

If I have two Docker containers running on the same host machine do they each have their own page cache or do they use the page cache of the host machine?
kellanburket
  • 12,250
  • 3
  • 46
  • 73
12
votes
2 answers

How does X86 CPU translate an address to an IO such as VGA text buffer?

If I want to access the VGA text buffer in X86 which is located at address 0xb8000: uint16_t *VGA_buffer = (uint16_t*)0xb8000; Then I index the variable VGA_buffer as a normal array, i.e., VGA_buffer[0], VGA_buffer[1], etc. However, I read about…
mnabil
  • 695
  • 1
  • 5
  • 19
12
votes
4 answers

How to disable paging for JpaRepository in spring-data-rest

I'm using spring-data-rest with JpaRepository to create the Rest-Endpoints. By default, paging is enabled for all JpaRepository, what is a good thing. But I have a legacy application that we port to our new stack that does not support paging. I…
Micha Reiser
  • 201
  • 1
  • 2
  • 6
12
votes
1 answer

Is there an explanation on the paging qn asked in 'The Social Network'?

"Suppose you are given a computer with a 16-bit virtual address and a page size of 256 bytes. The system uses 1-level page tables that start at address hex 400. Maybe you want DMA...who knows? The first few pages are reserved for hardware flags,…
Evil Washing Machine
  • 1,293
  • 4
  • 18
  • 43
12
votes
3 answers

What is the Equivalent syntax of mysql " LIMIT " clause in SQL Server

What is the Equivalent syntax of MySQL " LIMIT " clause in SQL Server . I would like to use it for doing paging of my results. (want to show records5 to 10 )
Shyju
  • 214,206
  • 104
  • 411
  • 497
12
votes
1 answer

BUG: unable to handle kernel paging request at

I am writing a PCI driver for a simple test device. Hardware is recognized correctly with lspci (as you can see my driver vabs has been registered): 04:02.0 Non-VGA unclassified device: Device bace:55aa Control: I/O+ Mem+ BusMaster+ SpecCycle-…
kohpe
  • 315
  • 2
  • 4
  • 9
12
votes
5 answers

Is UIPageControl Useless By Itself?

I've been looking into using the UIPageControl for a scrolling part of an application, and I was wondering how it works. The docs show methods for changing pages, setting the number of pages etc., but by itself the page control doesn't encompass any…
Jasarien
  • 58,279
  • 31
  • 157
  • 188
11
votes
1 answer

Range based paging mongodb

on the mongodb docs it says: (source) Unfortunately skip can be (very) costly and requires the server to walk from the beginning of the collection, or index, to get to the offset/skip position before it can start returning the page of data …
Harry
  • 52,711
  • 71
  • 177
  • 261
11
votes
6 answers

Paging 3 - How to scroll to top of RecyclerView after PagingDataAdapter has finished refreshing AND DiffUtil has finished diffing?

I'm using Paging 3 with RemoteMediator that shows cached data while fetching new data from the network. When I refresh my PagingDataAdapter (by calling refresh() on it) I want my RecyclerView to scroll to the top after the refresh is done. In the…
11
votes
4 answers

Paging 3 initial loading not shown

I am working with paging 3, everything work fine except initial loading state. I am adding withLoadStateFooter but it never show loading state at first call Here is my implementation Load State Adapter class LoadStateAdapter ( private val retry:…
ysfcyln
  • 2,857
  • 6
  • 34
  • 61
11
votes
1 answer

Updating PagedListAdapter after initial load to show latest network data

I'm utilizing the new Paging library to load paginated data from a rest API, but I'm having trouble understanding how to continue loading fresh data after it's cached in Room. Currently, I have a PagedListAdapter that's updated by using a boundary…
0xMatthewGroves
  • 3,181
  • 3
  • 26
  • 43
11
votes
2 answers

memory reserving and committing

I am reading < Windows via C/C++ > and here's some quotation. When a process is created and given its address space, the bulk of this usable address space is free, or unallocated. To use portions of this address space, you must allocate …
smwikipedia
  • 61,609
  • 92
  • 309
  • 482
11
votes
4 answers

Is this how you paginate, or is there a better algorithm?

I want to be able to take a sequence like: my_sequence = ['foo', 'bar', 'baz', 'spam', 'eggs', 'cheese', 'yogurt'] Use a function like: my_paginated_sequence = get_rows(my_sequence, 3) To get: [['foo', 'bar', 'baz'], ['spam', 'eggs', 'cheese'],…
orokusaki
  • 55,146
  • 59
  • 179
  • 257
11
votes
6 answers

Implementing result paging in hibernate (getting total number of rows)

How do I implement paging in Hibernate? The Query objects has methods called setMaxResults and setFirstResult which are certainly helpful. But where can I get the total number of results, so that I can show link to last page of results, and print…
flybywire
  • 261,858
  • 191
  • 397
  • 503