If there is need of any additional information or the provided one contains unnecessary information, please let me know.
The request was tested on forty orders and the execution time was about 30ms on average.
In the future, when the database becomes very large and if the execution time increases significantly, it can be cached by the frontend or the query can be run nightly by a cron job.
This PR represents the backend part of issue #58 Add best sellers page.
The response to the request looks like this:
If there is need of any additional information or the provided one contains unnecessary information, please let me know.
The request was tested on forty orders and the execution time was about 30ms on average. In the future, when the database becomes very large and if the execution time increases significantly, it can be cached by the frontend or the query can be run nightly by a cron job.