-
Notifications
You must be signed in to change notification settings - Fork 7
Replace "type" index with multi-column index on "id" and "type" #69
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,7 +38,7 @@ def create_events(db: EventSourcery::Postgres.config.event_store_database, | |
| column :created_at, :'timestamp without time zone', null: false, default: Sequel.lit("(now() at time zone 'utc')") | ||
| index [:aggregate_id, :version], unique: true | ||
| index :uuid, unique: true | ||
| index :type | ||
| index [:id, :type] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What will be affected by this change? I did a quick search of the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I understand that adding the index to each application's events table will improve the performance of the My questions is more about what is depending on this schema file and what will be benefited from this change. In the changelog, it is mentioned that this change doesn't affect existing projects. That made me wonder what is the outcome of this change. If someone creates a new Event Sourcery project, will the latest schema from this file be used somehow? |
||
| index :correlation_id | ||
| index :causation_id | ||
| index :created_at | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.