Answer the question
In order to leave comments, you need to log in
Separation of web application logic?
Let's say there is an online store in angular, we get a list of all products from the server in json format and all application logic is implemented on the client (pagination, sorting, etc.), but what if we have 100,000 products or more? What is the correct way to get data from the server?
Answer the question
In order to leave comments, you need to log in
No way. Pagination and filters need to be processed on the server with such volumes.
request not all products, but 30, on the second page request 30 products after 30, on the third page request 30 products after 60.
Like soselect * from products limit 60,30
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question