0

I have a query that essentially sums a number column, and this query can take a very long time to execute. I'm curious what the result of the query will be if rows are deleted or added during execution of the query.

The answer depends on how Oracle executes queries. Does it query a snapshot of the DB at the point of execution of the query, or does it account for live data changes?

Thanks in advance!

1 Answer 1

3

The short answer is that the query works on a snapshot of the data at the time it started - "statement-level read consistency".

The long answer is in the documentation here.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for the quick and direct answer!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.