Skip to content

New store for unavailable parties - #6725

Merged
julientinguely-da merged 5 commits into
mainfrom
julien/6702-unavailable-parties-stores
Aug 18, 2026
Merged

New store for unavailable parties#6725
julientinguely-da merged 5 commits into
mainfrom
julien/6702-unavailable-parties-stores

Conversation

@julientinguely-da

@julientinguely-da julientinguely-da commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

fixes #6702
fixes #6701

Pull Request Checklist

Cluster Testing

  • If a cluster test is required, comment /cluster_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If an upgrade test is required, comment /upgrade_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If a hard-migration test is required (from the latest release), comment /hdm_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If a logical synchronizer upgrade test is required (from canton-3.5), comment /lsu_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.

PR Guidelines

  • Include any change that might be observable by our partners or affect their deployment in the release notes.
  • Specify fixed issues with Fixes #n, and mention issues worked on using #n
  • Include a screenshot for frontend-related PRs - see README or use your favorite screenshot tool

Merge Guidelines

  • Make the git commit message look sensible when squash-merging on GitHub (most likely: just copy your PR description).

Signed-off-by: Julien Tinguely <julien.tinguely@digitalasset.com>
Signed-off-by: Julien Tinguely <julien.tinguely@digitalasset.com>
@julientinguely-da
julientinguely-da marked this pull request as ready for review August 10, 2026 15:06

@martinflorian-da martinflorian-da left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

It mostly looks good to me; I'm mostly unsure about the indexes / query plans; maybe let's do some experiments even if it's a bit annoying?


-- Index for the expiry check per party
create index dso_unavailable_parties_pid_exp
on dso_unavailable_parties (party_id, (updated_at + ignore_duration));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think the party_id might be actually counterproductive here.

Honestly I think it might be a good investment to fill up a database with synthetic data and get some query plans to confirm the indexes work as intended...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Already tested that as part of #5775

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Fair point but #5775 tests slightly different queries and specifically has no query that looks like listParties, AFAICT...

If the investment to do synthetic tests seems disproportionate, let's at least make sure to check query plans once this hits CILR and has some actual data.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

check query plans once this hits CILR and has some actual data.

will definitely do that!

@julientinguely-da

Copy link
Copy Markdown
Contributor Author

It mostly looks good to me; I'm mostly unsure about the indexes / query plans; maybe let's do some experiments even if it's a bit annoying?

Thanks for the review. The query plans were tested in #5775

Signed-off-by: Julien Tinguely <julien.tinguely@digitalasset.com>
@julientinguely-da
julientinguely-da enabled auto-merge (squash) August 18, 2026 08:03
@julientinguely-da
julientinguely-da merged commit cf652e8 into main Aug 18, 2026
61 checks passed
@julientinguely-da
julientinguely-da deleted the julien/6702-unavailable-parties-stores branch August 18, 2026 08:39
jarekr-da pushed a commit to jarekr-da/splice that referenced this pull request Aug 19, 2026
Signed-off-by: Julien Tinguely <julien.tinguely@digitalasset.com>
Signed-off-by: jarekr-da <jaroslaw.ratajski@digitalasset.com>
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.

Implement persistent store methods (addParties, removeParties) and backoff logic Add dso_unavailable_parties DB schema and indices

2 participants