Skip to content
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

For partner chains active sync a couple of additional indexes are handy #1865

Open
gilescope opened this issue Sep 30, 2024 · 2 comments
Open

Comments

@gilescope
Copy link

Partner chains noticed that they needed to add in the following two
indexes:

CREATE INDEX IF NOT EXISTS idx_ma_tx_out_ident ON ma_tx_out(ident);
CREATE INDEX IF NOT EXISTS idx_redeemer_tx_id ON redeemer(tx_id);

These help with performance using as an active bridge with Cardano to partnerchains. We've been manually applying these indexes but maybe these would be helpful for others if they were included by default?

@rdlrt
Copy link

rdlrt commented Sep 30, 2024

Quoting from #1349 (you'd find many other indexes too that may be relevant to some based on their usage patterns, but has adverse effect for those who dont neeed them)

In general, since db-sync is used by different clients with different query needs, it should be the responsibility of clients to add the indexes that they need. More information can be found https://github.com/input-output-hk/cardano-db-sync/blob/1040fa9ec85fd75ce9f02dae2006170136793d02/doc/migrations.md#upgrading-to-13100

(Ofcourse - the master branch of that doc here for updated reference)

@Cmdv
Copy link
Contributor

Cmdv commented Oct 30, 2024

Another option is to have "common" indexes be added as a config option in the config file.
Technically adding the index sits behind a flag, but what we couldn't provide is thorough support of new features affecting these indexes.

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

No branches or pull requests

3 participants