Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: MongoDB ObjectID

by betacentauri (Sexton)
on Oct 12, 2019 at 21:15 UTC ( [id://11107387]=note: print w/replies, xml ) Need Help??


in reply to Re: MongoDB ObjectID
in thread MongoDB ObjectID

Wow, thank you very much! What a juicy answer! Please, please, elaborate about "or you use paging".

Replies are listed 'Best First'.
Re^3: MongoDB ObjectID
by 1nickt (Canon) on Oct 12, 2019 at 21:24 UTC

    Depending on the framework you use in the browser to display the table, you may have too many rows in your table to transmit all at once. If so, you send a subset of the rows to be displayed, along with the data that the front-end JS needs to fetch the next "page" of rows (basically just a starting row ID and an offset).

    FWIW you can comfortably avoid paging and preload up to about 10,000 rows in a JSON object that you pass to the browser via your template layer, and DataTables will handle it smoothly (it's pretty nifty and only adds the row into the DOM when the user scrolls it into view).

    Hope this helps!


    The way forward always starts with a minimal test.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11107387]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-25 18:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found