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

Support database creation with force write disabled #671

Closed
mrotteveel opened this issue May 4, 2021 · 0 comments
Closed

Support database creation with force write disabled #671

mrotteveel opened this issue May 4, 2021 · 0 comments

Comments

@mrotteveel
Copy link
Member

For Jaybird tests it makes sense to disable force write to achieve a performance improvement. Exposing the property in FBManager will make this generally available to all users of FBManager for database creation.

This change will add two methods to FBManager: Boolean getForceWrite() returning the current config, and void setForceWrite(Boolean). The default null will result in the Firebird default behaviour (enabling force write after database creation and initialization), false will disable force write and true will enable force write at database creation.

The difference between null and true is important, as using true will slow down database creation a bit, as force write will already be enabled during database initialization (this is only noticeable if you create a lot of databases, like the Jaybird test suite).

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

1 participant