Question 450
A service stores document attributes as flexible JSONB but scans every row for a nested equality predicate. Which observation BEST confirms the intended behavior after the change?
Explanation
Correct Answer
GIN or expression indexes can speed supported JSONB queries over flexible metadata. The observed result “A representative JSONB filter uses the index where appropriate and returns the expected documents” would confirm the change “Create suitable PostgreSQL JSONB GIN or expression indexes for supported predicates” in this situation: A service stores document attributes as flexible JSONB but scans every row for a nested equality predicate.
Incorrect Answers
Vector indexing and retrieval consume CPU, memory and I/O resources that must be provisioned adequately. The situation here is: A service stores document attributes as flexible JSONB but scans every row for a nested equality predicate. A test of this alternative would miss the specific outcome “A representative JSONB filter uses the index where appropriate and returns the expected documents”.
Large write batches contend for memory, I/O and index maintenance resources with read queries. The situation here is: A service stores document attributes as flexible JSONB but scans every row for a nested equality predicate. A test of this alternative would miss the specific outcome “A representative JSONB filter uses the index where appropriate and returns the expected documents”.
HNSW uses an approximate graph structure to accelerate nearest-neighbor lookup. The situation here is: A service stores document attributes as flexible JSONB but scans every row for a nested equality predicate. A test of this alternative would miss the specific outcome “A representative JSONB filter uses the index where appropriate and returns the expected documents”.