Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to start multiple transactions (possibly in different attachments) using the same initial transaction snapshot [CORE6018] #6268

Closed
firebird-automations opened this issue Mar 1, 2019 · 7 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @asfernandes

With this feature it's possible to create parallel (via different attachments) processes reading consistent data from a database.

For example, a backup process may create multiple threads paralleling read data from the database.

Also a web service may dispatch distributed sub services paralleling doing some processing.

That is accomplished creating a transaction with SET TRANSACTION SNAPSHOT [ AT NUMBER <snapshot number> ] or isc_tpb_at_snapshot_number.

The <snapshot number> from the first transaction may be obtained with RDB$GET_CONTEXT('SYSTEM', 'SNAPSHOT_NUMBER') or transaction info call with fb_info_tra_snapshot_number.

Commits: cfbcbed

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 4.0 Beta 2 [ 10888 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: No test => Done successfully

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

Adriano, please add the description to README.set_transaction.txt

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

Dmitry, it's documented in doc/README.transaction_at_snapshot.md

README.set_transaction.txt is also outdated in relation to doc/README.read_consistency.md.

Will everything be in README.set_transaction.txt or is these different docs sufficient?

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

Sorry, I've missed doc/README.transaction_at_snapshot.md -- this is perfectly enough for me. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants