Slackbot
08/02/2023, 8:18 PMJason Bosco
08/02/2023, 8:18 PMEd
08/02/2023, 8:19 PMcurl 'https://xxxx-1.a1.typesense.net/multi_search?x-typesense-api-key=xxxx' \
-H 'authority: xxxx-1.a1.typesense.net' \
-H 'accept: application/json, text/plain, */*' \
-H 'accept-language: en-US,en;q=0.9' \
-H 'cache-control: no-cache' \
-H 'content-type: text/plain' \
-H 'dnt: 1' \
-H 'origin: xxxx \
-H 'pragma: no-cache' \
-H 'referer:xxx/' \
-H 'sec-ch-ua: "Chromium";v="115", "Not/A)Brand";v="99"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: cross-site' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36' \
--data-raw '{"searches":[{"collection":"tkag_en","q":"*","query_by":"data.title,content","drop_tokens_threshold":0,"filter_by":"data.jobField:=[`Engineering & Science`]","sort_by":"_text_match:desc,data.postingDate_timestamp:desc","page":1,"per_page":50,"facet_by":"data.businessUnit,data.category,data.company,data.contract,data.employmentType,data.entryLevel,data.jobField,data.language,data.remote,data.locations.cityState,data.locations.state,data.locations.country","max_facet_values":500,"include_fields":"data,_geoloc"},{"collection":"tkag_en","q":"*","query_by":"data.title,content","drop_tokens_threshold":0,"filter_by":"","sort_by":"_text_match:desc,data.postingDate_timestamp:desc","page":1,"per_page":0,"facet_by":"data.jobField","max_facet_values":500,"include_fields":""}]}' \
--compressedJason Bosco
08/02/2023, 8:38 PM"max_facet_values":500 is what’s causing most of the slow-downs. If you’re able to remove that and leave it as the default, that will speed things up
3. Your average record size seems pretty high as well (at least a few KB), whereas the geosearch demo dataset record size is probably under 0.5kbEd
08/02/2023, 8:39 PMEd
08/02/2023, 8:40 PMJason Bosco
08/02/2023, 8:40 PMEd
08/02/2023, 8:40 PMEd
08/02/2023, 9:32 PMmax_facet_values ?Ed
08/02/2023, 9:32 PMJason Bosco
08/02/2023, 9:33 PMEd
08/02/2023, 10:07 PMEd
08/02/2023, 10:08 PMJason Bosco
08/02/2023, 10:08 PMJason Bosco
08/02/2023, 10:09 PMEd
08/02/2023, 10:09 PMJason Bosco
08/02/2023, 10:10 PMEd
08/02/2023, 10:10 PMJason Bosco
08/02/2023, 10:10 PMEd
08/02/2023, 10:11 PMEd
08/02/2023, 10:11 PMJason Bosco
08/02/2023, 10:11 PMEd
08/02/2023, 10:12 PMEd
08/02/2023, 10:12 PMEd
08/02/2023, 10:21 PM