I am looking to optimise my website.

Searching for orders through the rest api is too slow. It's taking around 23 seconds for the query execution here:

/Webapi/Rest/Magento\Sales\Api\OrderRepositoryInterface/getList

On researching further, I found out that:

Magento\Framework\Reflection\DataObjectProcessor::buildOutputDataArray

This is being called over 400 times for certain search queries.

Any thoughts on how to optimise it, or if I can put a SQL query limiter over it?

  • May I know how many orders are there and what is your search query with this endpoint. – Ramkishan Suthar Dec 7 at 10:03

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.