-
Notifications
You must be signed in to change notification settings - Fork 5
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
When materialization takes long time "View not found" error when querying document #254
Comments
We aren't deleting views in the db at the moment, so I don't think it's this. I suspect it is happening as the A1) We can fix this by adding a Side thought, it makes me wonder if we need to think about best practice for how we query documents/views, maybe getting the document id and querying that is the most reliable way, seeing as views may be deleted. |
Super! Sounds good. Everything which needs multiple writes before it's considered a "final" state should be wrapped into one transaction, maybe we find more of these in other places? |
Yes, maybe! |
Querying a document (which exists) by
documentId
sometimes returns this error:The error comes from this line: https://github.com/p2panda/aquadoggo/blob/main/aquadoggo/src/graphql/client/utils.rs#L22
It often happens right after when the document gets updated. Maybe it gets temporarily deleted in the database before the new materialized version gets inserted? The document has a fairly large operation graph ..
The text was updated successfully, but these errors were encountered: