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
You need to explicitly specify which index you want YDB to use in your query, which in your case would probably be something like SELECT quantity FROM order_items VIEW idx_order_id_quantity WHERE order_id = .... Please see https://ydb.tech/en/docs/best_practices/secondary_indexes for more details.
Hello. I have this table:
with index
idx_order_id_quantity
->order_id
,quantity
I'd like to get
quantity
byorder_id
, so I use this query:But it scans all rows in table instead of using my index.
Explanation
The text was updated successfully, but these errors were encountered: