You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In an effort to simplify things, I realized that now that Collections are mature enough, there's no real benefit to using the view_entries tree separately from the Database collection.
We should move the collection of view version information into the Database type, and remove the view_versions_tree. If this ships after alpha 1, we should consider removing the old tree if it exists.
This may be a replacement for #26, or just a partial implementation.
The text was updated successfully, but these errors were encountered:
This turns out to be "impossible" -- maybe not quite impossible, but not worth it. The reason is that the Database schema type has a unique view. Upon saving a Database record, the view must be updated -- which requires that the integrity scanner has succeed for the ByName view.
The act of updating the version state requires updating that view, which means that the integrity scanner deadlocks. There are alternate approaches, but they would end up creating a new tree file on disk anyways, negating the benefit of the refactor.
This provides a similar goal as the entry() API, but on documents that
were fetched at some point in the past. This was originally written as
part of an attempt to tackle #112, before realizing a fundamental issue.
This function is useful, however, so I finished adding a unit test and
decided to ship it. If you are storing a document that you've retrieved,
and you wish to perform some edits and update it, you can use this API
to edit the document in such a way that if the document has been updated
before your edit, the document will be fetched and your callback will be
re-invoked with the current document.
In an effort to simplify things, I realized that now that Collections are mature enough, there's no real benefit to using the view_entries tree separately from the Database collection.
We should move the collection of view version information into the Database type, and remove the view_versions_tree. If this ships after alpha 1, we should consider removing the old tree if it exists.
This may be a replacement for #26, or just a partial implementation.
The text was updated successfully, but these errors were encountered: