-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
ConsolidatedView.Cache - first pass
#5748
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
Conversation
68b78f9 to
b7946f4
Compare
Courtesy by @zoldar Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>
|
oof wait this is fun 09:41:57.022 [error] Error refreshing 'consolidated_views' - %Postgrex.Error{message: nil, postgres: %{code: :internal_error, line: "1194", message: "invalid memory alloc request size 1073741824", file: "mcxt.c", unknown: "ERROR", severity: "ERROR", pg_code: "XX000", routine: "repalloc"}, connection_id: 236, query: nil} |
…g?)" This reverts commit 03d18bc.
RobertJoonas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Some questions in line.
|
|
||
| @impl true | ||
| def get_from_source(consolidated_view_id) do | ||
| ConsolidatedView.get(consolidated_view_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be ConsolidatedView.site_ids I think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, excellent, will update tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes
This lets us have an interface to lookup regular site ids per consolidated view id efficiently. I don't think it needs more tests coverage at this point - since all the caches and their common characteristics are thoroughly tested elsewhere.
Tests
Changelog
Documentation
Dark mode