Ask Your Question
1

Is a full table scan the outcome of using the IN() operator to filter by partition key?

asked 2023-05-25 13:03:54 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-05-25 13:16:02 +0000

bukephalos gravatar image

No, a full table scan is not the outcome of using the IN() operator to filter by partition key. When using the IN() operator to filter by partition key, the database engine can use an optimized query plan that only scans the relevant partitions instead of scanning the entire table. This can significantly improve the query performance. However, if the partition key is not properly indexed or if the IN() list contains too many values, then the database engine may still need to perform a full table scan.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-25 13:03:54 +0000

Seen: 8 times

Last updated: May 25 '23