Zenaique

You upsert a document and query for it 200 milliseconds later, but it never appears. Pick the most likely cause.

MCQ·Easy·4.0 · 0·~1 min
Attempt it
Quick reference
TL;DR

Write acknowledgement and search visibility are separate steps; the upsert is durable but waits in a buffer or fresh segment until the next flush or refresh makes it queryable.

Memory aid
Sign in for the mnemonic that makes this stick. See Pro pricing.
Easy to grasp

Imagine handing a note to a librarian who immediately puts it in a tray on the counter and says, got it. The note is safe and is going into the catalogue, but the catalogue card has not been typed and filed yet. If you ask the catalogue ten seconds later whether the note exists, the catalogue says no, because the typing happens in batches every few minutes. The note is not lost. The catalogue simply has a refresh schedule, and your query landed between two refreshes. Most vector databases work the same way: a write is accepted and durable long before it is searchable.

Key concepts
Detailed answer & concept explanation
~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.

Sign in for 5 free unlocks/day or go Pro for unlimited. See Pro pricing.
Quick scan · 2–4 min

Everything important, quickly.

4 minutes: state durability versus queryability, name the freshness window for two or three engines, and describe the read your own writes pattern.

Real-world examples

Real products, models, and research that use this idea.

  • Pinecone serverless documents a freshness layer with second scale staleness for the most recent writes before they merge into the main index
  • Elasticsearch and OpenSearch ship with a one second default refresh interval; per request refresh exists for tests but is the wrong default for production
  • Milvus exposes four consistency levels (strong, bounded, session, eventual) so the application can pick its own staleness budget per query
  • Qdrant write acknowledgement happens at WAL flush, and the standard pattern for read your own writes is to query the application database for the just written document
Interviewer follow-ups

What an interviewer would ask next. Try answering before peeking at the approach.

QHow would you give the application read your own writes without forcing strong consistency on every query?
Sign in or go Pro to see the approach for this follow-up.
QWhat is the cost of setting refresh_interval to immediate in Elasticsearch?
Sign in or go Pro to see the approach for this follow-up.
Don't say this

Red flags and common mistakes that signal junior thinking. Click to expand.

Most common mistake

Assuming write acknowledgement equals search visibility, then chasing phantom bugs in upsert payloads when the real cause is a documented freshness window.

Sign in or go Pro to see all red flags and common mistakes. See Pro pricing.
60-second cheat sheet

The night-before-the-interview bullets. Scan these on the way to the call.

Sign in for 5 unlocks/day or go Pro for unlimited revision sheets. See Pro pricing.
References

Primary sources. Skim if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
HNSW vs IVF, when do you pick each for a production vector index?
Flashcard·Medium