Repository navigation
Flush Clickhouse buffers faster by encoding early - #3623
Merged
Merged
Conversation
ruslandoga
marked this pull request as draft
December 13, 2023 06:35
ruslandoga
commented
Dec 13, 2023
| if found_session do | ||
| updated_session = update_session(found_session, event) | ||
| buffer.insert([%{updated_session | sign: 1}, %{found_session | sign: -1}]) | ||
| buffer.insert([%{found_session | sign: -1}, %{updated_session | sign: 1}]) |
ruslandoga
commented
Dec 13, 2023
| CacheStore.on_event(event1, nil, buffer) | ||
| CacheStore.on_event(event2, nil, buffer) | ||
| assert_receive({WriteBuffer, :insert, [[session, _negative_record]]}) | ||
| assert_receive({WriteBuffer, :insert, [[_negative_record, session]]}) |
Contributor
Author
There was a problem hiding this comment.
These tests use a mock buffer so they had to be updated due to the fix mentioned above.
aerosol
reviewed
Dec 13, 2023
| - Show Outbound Links / File Downloads / 404 Pages / Cloaked Links instead of Goal Conversions when filtering by the corresponding goal | ||
| - Require custom properties to be explicitly added from Site Settings > Custom Properties in order for them to show up on the dashboard | ||
| - GA/SC sections moved to new settings: Integrations | ||
| - `CLICKHOUSE_MAX_BUFFER_SIZE` now represents bytes and defaults to `100000` (100KB) |
Member
There was a problem hiding this comment.
Can you rename it to CLICKHOUSE_MAX_BUFFER_SIZE_BYTES so I can keep both in our deployment scripts? Makes it easier to revert and later on we can deprecate the old one.
ruslandoga
marked this pull request as ready for review
December 14, 2023 05:18
aerosol
approved these changes
Dec 14, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
This PR retries #3511, but with the session insert order fixed.
I'm keeping it in draft until #3622 is merged
Tests
Changelog
Documentation
Dark mode