Current location - Loan Platform Complete Network - Big data management - How to combine Tornado with SQLAlchemy to realize paging effect?
How to combine Tornado with SQLAlchemy to realize paging effect?
Paging is just passing an extra pageIdx and pageSize to the backend, then calculating start and stop to find out the data, and passing it to the frontend for rendering.

Use slice(start, stop) in the database. Handler, pass the page as a url.

Query the number of all and calculate *** how many pages are needed based on how many to display per page.