-
Notifications
You must be signed in to change notification settings - Fork 12
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
Projection isn't found in tx cache #31
Comments
Does I'd like to mark "projections" as a deprecated feature, because in new code you almost always should use YDB indexes ( |
No, it doesn't. Because we make actions with projections only in RwProjectionCache::applyProjectionChanges which calls on commit. Overall projections is useful feature, but unsafe in current design. It looks impossible to remove it from current projects which are using YOJ. Anyway GlobalIndex can't close all case of projections. For example GlobalIndex can't be computable. |
You can enable immediate writes, then projection changes will be applied immediately, not on commit, and should end up in the first-level cache of the transaction. |
let's imagine Entity(id, value) with projection ValueIndex(id_value, entity_id). If we save in tx some entity and after it try to find projections - they will be unchanged
For example: this test is green
The text was updated successfully, but these errors were encountered: