|
|
|
|
|
by buro9
4058 days ago
|
|
> This query takes about 50ms! We experimented with returning the document text with results and found that if we returned the full text of documents, it added about 350ms to the query time which seems to be network overhead rather than a slower query. If we only returned 200 characters from the texts then it only added around 100ms. The way you have written the query, it has to extract the title from all of the JSON documents before applying the LIMIT. Perhaps do the work to get the identifiers, order by rank, and apply the limit... all in a subquery. So that only the outer query actually touches the JSON document and extracts the titles. Try it and report back on the speed improvement. |
|