3
3
33remido2021-05-11 14:05:20
Express.js
33remido, 2021-05-11 14:05:20

Implementation show more Express?

Good afternoon! I'm uploading a list (product catalog) to a page from the database.
There is a 'Show more' button.
Can you please tell me the best way to implement this?
1. Send a query to the database with LIMIT and OFFSET and append a date to the directory?
2. Do slice() c on response and append to directory?
3. Unload everything from the database at once, and just break it into blocks with display: none?
Or your options, I will be very grateful for the answer

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Osher, 2021-05-11
@miraage

Send page number, and offset/limit drive on the server. Otherwise, they will send you offset=0 limit=598235879823579823 and the load on the base will fly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question