I have an view that has a for loop that inserts rows to a table. The table is very big and already consisting of couple of thousand of rows.
When I run it, the server throws out of memory exception.
I would like to add an infinite scrolling feature so I won't have to load all the data at once.
Right now the data is being sent with regular res.render(index.ejs, data)
(data
is JSON)
I can figure out the infinite scrolling part, but how do I get the JSON data in chunks from the server ?
I am using node.js with express and ejs as template engine. I am open for using any framework that will aid me through the process (was particularly checking out Angualr.js).
Thanks