#community-help

Facet Update Delay in Document Querying

TLDR Dan experienced delays in querying updated facet values. Kishore Nallan clarified these should be immediate unless in clustered mode.

Powered by Struct AI

1

1

4
16mo
Solved
Join the chat
Jun 21, 2022 (16 months ago)
Dan
Photo of md5-f8f7b04dda4a09dec991cdc07f4d9c64
Dan
11:39 AM
After updating a facet value for a document, how long does it take before the facets are updated when querying? For context - we’re updating a tag facet on a document as part of an API call, and would then like to fetch the new facets, but they appear to be still out of date.

1

11:43
Dan
11:43 AM
is there any way to make the request only complete when the facets collections are updated?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
12:41 PM
The write is complete as soon as the write API call succeeds. Any reads after that should immediately start seeing the updated value. In clustered mode it might take a couple additional seconds for all nodes to get it.

1

Dan
Photo of md5-f8f7b04dda4a09dec991cdc07f4d9c64
Dan
12:42 PM
thank you, i’ll debug further, that’s helpful!