Skip to content

Conversation

@spazmodius
Copy link
Contributor

@spazmodius spazmodius commented Jan 4, 2024

these are constant.

This PR anticipates https://github.com/versionone/Core/pull/6582

@pmamut
Copy link
Contributor

pmamut commented Jan 5, 2024

IIRC @lremedi added (some of) these predicates to induce SQL server into using a supporting index, with a vastly improved query plan

@spazmodius
Copy link
Contributor Author

Probably. If that improves performance, just think what https://github.com/versionone/Core/pull/6582 can do!

ActivityStreamCommits as (
select cast(CommitStamp as datetime) CommitStamp, CheckpointNumber, CommitSequence
from Commits
where BucketId = 'Meta' and StreamId = '1EE3982777943C1BD64B154C4B5008DC0C3815A0'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As Pavel mentioned, this should be tested, because without this filters I've seen poor execution plans on allstate db

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants