M
M
magary42017-02-13 16:04:49
JavaScript
magary4, 2017-02-13 16:04:49

Typeahead/autocomplete to reduce server response time to a minimum?

even with local installation, the response to ajax generated by Typeahead.js takes 1s - on the server 2s
, the request to the database itself takes negligible time. there is no doctrine
, almost a raw response from the database is shoved into JsonResponse
looked here - https://www.rome2rio.com/ in the timeline console, the
responses take 40-80ms
how is this possible?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Skobkin, 2017-02-13
@magary4

82 milliseconds on an unoptimized Symfony application (using Doctrine) on a server with an HDD.
You obviously misconfigured something. Use a profiler and look for where you have such big drawdowns.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question