Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pagination]

Pagination is the process of dividing information into discrete pages.

7
votes
2answers
530 views

Version of C# StringBuilder to allow for strings larger than 2 billion characters

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 ...
2
votes
1answer
48 views

Function to filter comments and ratings, with pagination support

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 ...
3
votes
0answers
41 views

Paginator module in Elixir

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 ...
2
votes
1answer
78 views

List component using RXJS Angular

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 ...
4
votes
2answers
74 views

Python grouped iterator

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 ...
2
votes
1answer
73 views

Offset vs Cursor Pagination

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: ...
1
vote
1answer
331 views

React container component to fetch paginated data for a stateless table component

TableContainer.js does the common task of fetching data and passing it to a lower component, Table.js, which is a stateless ...
0
votes
2answers
96 views

Web scraping and speeding up performance

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 ...
1
vote
1answer
44 views

Displaying pagination links, maybe with links to first and last page

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? ...
3
votes
1answer
64 views

Determining if there is data left after fetching a page of data

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 ...
1
vote
0answers
55 views
3
votes
1answer
140 views

Paginated AngularJS posts application

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 ...
0
votes
0answers
17 views

Oscillate between NextPage and PrevPage to parse a list brutely

There's a well-defensed job-hunting website in China, I refactored my code which could retrieve data unlimited and effectively ...
5
votes
1answer
347 views

React app with table, search & pagination

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:...
3
votes
1answer
193 views

React pagination without JSX

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. ...
7
votes
1answer
224 views

Setting up pagination links inside a WebAPI Controller

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 ...
4
votes
2answers
4k views

Pagination algorithm in JS

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. ...
1
vote
1answer
365 views

Bootstrap pagination

Here is my bootstrap pagination code. Maybe it can be simplified. ...
1
vote
0answers
3k views

Pagination using Spring MVC and Hibernate

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 ...
2
votes
2answers
471 views

Infinite scroll for currency list

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 ...
2
votes
2answers
2k views

MVC simple Employee table with paging using SP

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 ...
2
votes
0answers
575 views

React app with paging

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 ...
-3
votes
2answers
2k views
4
votes
0answers
779 views

PowerShell Supports Paging

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 ...
1
vote
0answers
1k views

Paging loader using RxSwift

This is generic logic for handling network requests that load data based on pages. It is assumed that the view controller would implement the UISource protocol. I ...
1
vote
2answers
116 views

Using PDO to list and remove updates

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 ...
2
votes
2answers
2k views

PagedList with large data sets

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 ...
5
votes
1answer
579 views

Laravel Pagination with haversine formula in it

I'm using the haversine formula to count distance from selected post-code to desired destination. I have the following scope in ...
4
votes
3answers
109 views

Setting the page number with a default

Consider this code segment: if (empty($_GET)) { $page_number = 1; } else { $page_number = $_GET["page_number"]; } I wonder if there is a better, more ...
3
votes
1answer
130 views

jQuery wait for all paginations

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 ...
6
votes
1answer
2k views

Java 8 spliterator for paged results

Summary: I am using an API which returns paged results. I want to have these results as Java 8 Stream and implemented a ...
1
vote
1answer
205 views

Listing employees, categorized by license expiration date

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 ...
2
votes
1answer
139 views

Maintaining state in a pagination handler

In my application I wrote a pagination code that retrieves data from the server as the user scrolls down. In this case, I need to mantain the current page, whether a request is being processed, and ...
3
votes
1answer
1k views

Generic paging algorithm

I have made a simple pagination algorithm. It shows "next" and "previous" buttons when appropriate. It also limits the amount of buttons if the page amount exceeds a certain amount, e.g. ...
3
votes
1answer
926 views

AngularJS application to display 10 search results at a time

I am working on an angular application. I have written a controller for a page which gets 10 objects from an api. On clicking the next button, it gets the next 10 objects and so on. I have also added ...
1
vote
0answers
1k views

Pagination from resultset for JTable

I am trying to create simple app, where I need a pagination for my JTable. I want have there buttons with number for all "pages" in my JTable. I have code here: Class Customer: ...
8
votes
1answer
2k views

GET with paging, sorting and filtering

I have a GET method that handles paging, filtering, and sorting. Development has been fairly rapid and I'm not completely sold on some of the implementation. A few assumptions have to be made for this ...
3
votes
1answer
7k views

Java - Creating a Paginated List

I need to create a class which acts as a paginated list. My use case is like this: I am writing a library which makes a service call to fetch a List<obj>. ...
3
votes
1answer
481 views

WAI-ARIA and Pagination

I would like to get some advice on WAI-ARIA markup I have added to my paginated post navigation. Does this look correct, am I missing anything? Should anything be added/removed to the current page ...
1
vote
1answer
667 views

Make jquery pagination more efficient

I am trying to create pagination with pure PHP and jquery. I have done this and it works exactly how I want it to work. Essentially I get all products from my database using PHP. I then populate the ...
1
vote
0answers
45 views

Angular.JS directive to show 225 items in a grid

I'm a newbie in angularjs who has been tasked with optimizing this code. The following directive lists information in a table. The table uses pagination with 25 items per page and 11 items that can ...
0
votes
1answer
171 views

Javascript pager logic

I implemented a function for pager link creation, it looks like this: ...
2
votes
0answers
540 views

Pagination links for various lists using Spring-HATEOAS

I'm using Spring HATEOAS to create some links on my REST API. However, the entities i'm returning are very close, so the code to generate the links are the same: ...
4
votes
1answer
1k views

Joining huge CSV files and splitting the result into batches

I've got ~20GB of data about the same subject, concatenated from small files of 16kB, each produced by different measurement equipment. They share some headers (on the example: B, D & E) and they ...
1
vote
0answers
55 views

Optimize KnockoutJs Pagination Computed Function

I have written a function that builds an array of paging options for rendering on the view. I have modelled it after DataTables for jQuery, a live example with lots of data is available here: http://...
5
votes
1answer
181 views

Paginating blog posts from SQL server using nested LINQ statements

I made an ASP.NET MVC application using Entity Framework for code-first migrations to the SQL Server database. I also use Unity (DI/IoC) for managing the services and repositories. I made an overview ...
1
vote
1answer
200 views

Product inventory database

I just finished writing a program which working with a database. Throughout the process when working with people to get past some of the hurdles I faced I was ridiculed for my SQL statements. I have ...
0
votes
1answer
339 views

HTML Pagination Generator

I have created a function that helps me generate pagination really easily but I am concerned about its performance mainly. The function accepts 2 parameters: A list of items (has meaning in the ...
3
votes
0answers
277 views

A clean way to do CRUD with pagination

What do you think about the following approach to CRUD? Here is the reading+pagination example. DTO types have Dto* prefix, EF Entity Types have E* prefix. DAL example: ...
4
votes
2answers
563 views

Pagination algorithm based on scores

I need to divide scoreResult into pages (which is already ordered by score column from highest to lowest), and each page cannot contain too many records (e.g. 12 is ...