[MS-1093] Implement bulk session event generation and insertion logic#1295
Merged
Conversation
3182cff to
c145617
Compare
c145617 to
bc8f44d
Compare
luhmirin-s
approved these changes
Aug 4, 2025
Contributor
luhmirin-s
left a comment
There was a problem hiding this comment.
Added a couple of suggestions, otherwise looks great.
| @@ -0,0 +1 @@ | |||
| INSERT INTO DbEvent VALUES('__event_id__','AUTHORIZATION','__project_id__','__session_id__','{"id":"__event_id__","payload":{"createdAt":{"ms":1754153597998,"isTrustworthy":false},"eventVersion":2,"result":"AUTHORIZED","userInfo":{"projectId":"__project_id__","userId":{"className":"TokenizableString.Raw","value":"__module_id__"}},"type":"AUTHORIZATION"},"type":"AUTHORIZATION","scopeId":"__scope_id__","projectId":"__project_id__"}',1754153597998,0,NULL); | |||
Contributor
There was a problem hiding this comment.
Can we format SQL files for improved readability?
Collaborator
Author
There was a problem hiding this comment.
Yes this is good Idea.
Done
1a5125e to
006d20f
Compare
006d20f to
904aea0
Compare
|
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.



JIRA ticket
Will be released in: 2025.3.0
Notable changes
This PR introduces the ability for developers and E2E tests to generate bulk session events using predefined SQL templates stored in the assets folder.
Instead of relying on the existing event repository (which maps events to DbEvent objects and was significantly slow—~1 minute for 15 sessions), this implementation uses raw SQL insertion templates. As a result, the same 15 sessions are now generated in approximately 450 milliseconds
Testing guidance
Additional work checklist