Skip to main content

Questions tagged [pagination]

Pagination is the process of dividing information into discrete pages.

Filter by
Sorted by
Tagged with
1 vote
1 answer
279 views

I'm new to Go from another language and I'm most interested to know if this implementation has anything that's not idiomatic Go, but any feedback is welcome and you're not going to hurt my feelings by ...
ETLJ's user avatar
  • 111
1 vote
1 answer
218 views

After reviewing my previous question I came up with this pagination function. On my first approach I wrote a class thinking about IDE's code assist and the review wasn't positive. In this function I ...
julio's user avatar
  • 229
2 votes
1 answer
135 views

This is my first question in Code Review. I apologize in advance for using Spanish (my native language). I thought there was a spanish version of Code Review. This class is meant for pagination. It ...
julio's user avatar
  • 229
1 vote
0 answers
502 views

I am a beginnner and have put up a code that talks to pagerduty API and then it fethces oncall info for a team (get team id, get escalation policy id, then finally get on call info). response is ...
AhmFM's user avatar
  • 131
4 votes
1 answer
170 views

I am starting with the Angular and I need some support. I have watched some of the tutorials and lot of them are using things differently. I upgraded some tutorial with my own idea, but I am not sure ...
ggoran's user avatar
  • 141
1 vote
1 answer
4k views

I've encountered a paginated API route where there is no way to know the number of available pages. The only way to retrieve every pages is to check on each page if a next page exists. To do so, the ...
djoproject's user avatar
2 votes
1 answer
425 views

What I'm trying to do is quite simple: my table has pagination. So if I have 12 items to show and my max items per page is 10, I will have 2 pages, one with 10 records and another with just 2. I ...
Pelicer's user avatar
  • 123
3 votes
1 answer
167 views

The most nauseous problem with pagination is the fact that you have to write two almost identical queries. For the various reasons I am not inclined to use the SQL-only way (such as ...
Your Common Sense's user avatar
3 votes
1 answer
654 views

I have made this Pagination Class in JS which takes the following configurations :- Total records Records per page Visible pages The idea is simple that any instance created using this Pagination ...
Lakshya Thakur's user avatar
2 votes
1 answer
171 views

Basic paging function, is there logical problems with the JavaScript part? very basic paging function. I want to know if there are some problems in the logic of the code. I feel the JS code is a bit ...
Phoenix's user avatar
  • 81
2 votes
0 answers
56 views

Can you guys review my GraphQL search pagination function? I'm afraid there could be some performance issues, or something. Especially at the aggregation section and this ...
SnekNOTSnake's user avatar
3 votes
1 answer
5k views

I made a pagination algorithm but in my opinion it is too complicated and it is quite difficult to be understood. This algorithm should show 5 pages where in the middle is the current page. It should ...
John R.'s user avatar
  • 165
1 vote
1 answer
138 views

I'm building a page in LWC this page consist of a table, you can search, sort and paginate with this table. When the first element is selected: when the last element is selected: When the middle ...
d_k's user avatar
  • 113
3 votes
0 answers
1k views

I'm creating a generic pagination helper class. Personally I use this class for navigating through Records which are loaded into any sequential containers e.g ...
k03rdt6's user avatar
  • 31
2 votes
0 answers
1k views

Motivation In my web app (React, Redux, TypeScript) we have a common need to write paginated API calls, with various UI interactions (infinite scroll, prefetch pages in the background, or manual page ...
Aaron Beall's user avatar
3 votes
1 answer
123 views

I'm working on a site where you can read about different songs, listen to them, rate them etc, same with their singer. I've been thinking about how I could create a simple, yet perfectly working ...
K. P.'s user avatar
  • 253
5 votes
1 answer
761 views

i have a pagination library in php. i want to know: how can i make it more efficient when passing large arrays into the constructor how can i add db support paginator.php ...
shorif2000's user avatar
3 votes
1 answer
2k views

I have written a function to get the actual page range to display that page range in pagination. My function is working properly. But I think that I have written bad code. Can someone review my code ...
Vishal's user avatar
  • 197
4 votes
1 answer
116 views

I'm wondering if there's a more Pythonic way to keep paginating an API endpoint until there's no next key in the response. The thing that bothers me the most is the ...
zerohedge's user avatar
  • 155
1 vote
1 answer
125 views

Can someone tell me if this code is safe? Can be sql-injected or something else hacked? Code get some rows from db and show in pages with pagination... if i can improve let me know and show me how, ...
No Name's user avatar
  • 21
3 votes
1 answer
2k views

I have tried to develop a simple product listing app in RxSwift with MVVM design pattern. I have managed to achieve it but I need someone to review my code, such as: Have I followed the proper RxSwift ...
Ajay Bhanushali's user avatar
7 votes
2 answers
2k views

In C#, 64bit Windows, .NET 4.5 (or later), and enabling gcAllowVeryLargeObjects in the App.config file allows for objects larger than two gigabyte. That's cool, but ...
Dan W's user avatar
  • 173
2 votes
1 answer
122 views

I have a web component that is rendering a list of items and I have this method for filtering these items based in a filterBy object that is being updated by other ...
Juan Rivas's user avatar
3 votes
0 answers
108 views

I wrote this Paginator module that's part of a small application that displays Elixir Github repos in a table. I'm new to Elixir and looking for code improvements with as much as possible. Best ...
dan-klasson's user avatar
3 votes
1 answer
169 views

I have a small angular project, where I have an Article component to list articles with pagination system. The default page The placeholder loader page The main objectives are: Display the articles ...
ahmedbhs's user avatar
  • 131
6 votes
3 answers
302 views

I wanted to write an iterator that would split items up into groups, so I can bulk insert into MySQL without crashing or overwhelming the server. This is the implementation I came up with. I am hoping ...
Ben's user avatar
  • 181
2 votes
1 answer
624 views

I am trying to compare any performance gain(s) from moving a current offset-based pagination endpoint to a cursor based one. I have the following ruby code: ...
Anthony's user avatar
  • 439
1 vote
1 answer
1k views

TableContainer.js does the common task of fetching data and passing it to a lower component, Table.js, which is a stateless ...
M3RS's user avatar
  • 413
1 vote
2 answers
262 views

I was wondering if the following code could be altered to speed up the scraping process. I know xrp has many transactions, but it takes an hour to go through half a day of transactions (at the busiest ...
WizardCovfefe's user avatar
1 vote
1 answer
520 views

I've been researching if this is possible, but I've drawn a blank, I'm wondering if it's possible to optimize these for and if statements together? ...
Casper's user avatar
  • 131
4 votes
1 answer
213 views

I just faced a problem where I needed to know if extra data was present in a given collection after a Take operation took place. Specifically, this is related to ...
julealgon's user avatar
  • 224
2 votes
1 answer
573 views

I have made a small application that displays a posts JSON in the form of cards, with the help of AngularJS and Twitter Bootstrap 4. The application has an interface for pagination and there are ...
Razvan Zamfir's user avatar
4 votes
1 answer
2k views

I'm new to React. I major in Angular. And for me it's realy not so obvious here... Do I use this props & state variables in a good way or do I need to refactor/change something? Main goal is such:...
pavel's user avatar
  • 141
3 votes
1 answer
369 views

I've published my first react project for pagination purposes. It's likely I'm making mistakes or there are any improvements to my code. I'd appreciate if anyone has any offers. ...
Ghasem's user avatar
  • 133
7 votes
1 answer
772 views

I'm implementing paging for the first time and have the following code which achieves what I want. There are just a couple of things that feel a bit weird to me and would like if somebody could give ...
TomSelleck's user avatar
10 votes
2 answers
18k views

I needed a relatively simple pagination, as currently implemented on GoogleSearch (sans prev & next buttons). Most code I've seen was overly complicated so I came up with something that's simpler. ...
Robert's user avatar
  • 201
2 votes
1 answer
791 views

Here is my bootstrap pagination code. Maybe it can be simplified. ...
user avatar
2 votes
0 answers
4k views

My company develops a Spring web application that exposes a REST API and right now we're starting to look into pagination for the methods that load data from some heavy tables. We initially looked ...
frankieta's user avatar
  • 121
2 votes
2 answers
1k views

I made infinite scroll for a currency (in the code below: valute) list. The currency list is fetched via an AJAX-request from a remote server. After it starts the script displays 10 records. After the ...
cyklop77's user avatar
  • 311
2 votes
2 answers
4k views

I am a beginner web developer and I have to do an exercise to show an Employee table using a WCF service, 10 entries at a time, with the paging of the table controlled by a stored procedure. What I ...
PatoPan's user avatar
  • 21
2 votes
0 answers
785 views

I want to create react app with paging, which will keep state on page reloading. I'm using react-router-dom and my own Paging ...
Kote's user avatar
  • 206
-3 votes
2 answers
6k views

...
Klajdi's user avatar
  • 111
3 votes
0 answers
2k views

I've not played with SupportsPaging before, so wanted to knock up some demo code & get feedback on whether my implementation is OK, or if I've misunderstood ...
JohnLBevan's user avatar
  • 1,419
1 vote
2 answers
166 views

I started using PDO 2 days ago, but I want to know if the way I'm coding and the way I'm using it is the correct way of doing things with PDO. Please let me know if you guys notice any security flaws ...
vaxzz's user avatar
  • 11
2 votes
2 answers
4k views

I'm using X.PagedList for paging functionality in my application. The code I have works fine but when I return larger sets of data it seems like it could be faster. Is there anything I can do to my ...
DrivenTooFar's user avatar
5 votes
1 answer
914 views

I'm using the haversine formula to count distance from selected post-code to desired destination. I have the following scope in ...
rkd.me's user avatar
  • 106
4 votes
3 answers
210 views

Consider this code segment: if (empty($_GET)) { $page_number = 1; } else { $page_number = $_GET["page_number"]; } I wonder if there is a better, more ...
Hai Vu's user avatar
  • 760
3 votes
1 answer
205 views

I want to download data for all of my repos from the Github API. Github paginates their responses and includes a header Link type:"next" when there's another page ...
irbanana's user avatar
  • 133
7 votes
1 answer
4k views

Summary: I am using an API which returns paged results. I want to have these results as Java 8 Stream and implemented a ...
lexicore's user avatar
  • 223
2 votes
1 answer
252 views

I am working on a personal project and I have hit a wall. I know I am writing bad code and I really want to refactor the code below. The application has three tables on the same page. Each table ...
Benjamin's user avatar