You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, every search operation triggers an additional GET request to /collections/users
that checks if the collection exists. As collections grow in size and number of fields,
this verification step introduces significant latency before the actual search request.
A user reported via email that while the search endpoint itself is very fast (~10ms),
they're seeing an extra GET request to verify collection existence before each search.
For large collections with many fields, this verification step is adding noticeable
overhead to every search operation.
I'll submit a PR that skips the collection existence check for search operations while
maintaining it for index operations. This change shouldn't introduce any issues, as search operations
will fail regardless if the collection doesn't exist in Typesense.
Steps To Reproduce
Set up Laravel Scout with Typesense driver
Create a model with a large number of searchable fields
Enable debug logging for HTTP requests
Perform a search operation using Scout
Check the logs to observe two requests:
First request to /collections/users to verify collection
Second request to /collections/users/documents/search for actual search
The text was updated successfully, but these errors were encountered:
Scout Version
10.11.0
Scout Driver
Typesense
Laravel Version
11.35.1
PHP Version
8.4.1
Database Driver & Version
No response
SDK Version
v27.1
Meilisearch CLI Version
No response
Description
Currently, every search operation triggers an additional GET request to
/collections/users
that checks if the collection exists. As collections grow in size and number of fields,
this verification step introduces significant latency before the actual search request.
A user reported via email that while the search endpoint itself is very fast (~10ms),
they're seeing an extra GET request to verify collection existence before each search.
For large collections with many fields, this verification step is adding noticeable
overhead to every search operation.
I'll submit a PR that skips the collection existence check for search operations while
maintaining it for index operations. This change shouldn't introduce any issues, as search operations
will fail regardless if the collection doesn't exist in Typesense.
Steps To Reproduce
/collections/users
to verify collection/collections/users/documents/search
for actual searchThe text was updated successfully, but these errors were encountered: