-
Notifications
You must be signed in to change notification settings - Fork 6
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
Feature request / search: Rename bdb file after analysis #130
Comments
|
Also, if you want to do something hypothetically, without permanently modifying the database, you can do it inside a transaction:
Or a savepoint, which is nicer for the Python API and nests, unlike transactions:
If you don't like your hypothetical changes, you can roll back out of a transaction, or raise an exception to abort a savepoint:
|
Nice! We should either make this more visible or make it standard to be inside a transaction. |
http://probcomp.csail.mit.edu/bayesdb/doc/bql.html#transactions The docstring for BayesDB.savepoint() is a little terse. I will expand with a short example. |
The autosave system of bdb files makes it hard to track in which state the bdb file currently is.
Granted, one could do this by initializing a population and calling
pop.analysis_status()
, for instance, but this is not quick to do if someone works on multiple bdb files. Being able to copy and rename the bdb file after making the population - or maybe after each crucial inference step to avoid losing previous costly inference steps- would come in handy.The text was updated successfully, but these errors were encountered: