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

Delete/Cascade is slow #256

Closed
erikd opened this issue Aug 18, 2020 · 6 comments · Fixed by #414
Closed

Delete/Cascade is slow #256

erikd opened this issue Aug 18, 2020 · 6 comments · Fixed by #414

Comments

@erikd
Copy link
Contributor

erikd commented Aug 18, 2020

The delete/cascade operation is slow. Its main purpose is testing and debugging, but deleting 1 million rows can take 30 minutes or more.

Persistent issue: yesodweb/persistent#1113

@erikd
Copy link
Contributor Author

erikd commented Sep 1, 2020

Progress is being made: yesodweb/persistent#1121 (comment) .

@erikd
Copy link
Contributor Author

erikd commented Nov 4, 2020

The Persistent PR has been merged, but last time I checked, Esqueleto did not yet work with the new Persistent.

@PapaSwer
Copy link

PapaSwer commented Nov 4, 2020

How can I implement it in the cardano-db-sync ?

@erikd
Copy link
Contributor Author

erikd commented Nov 4, 2020

This is a library (Persistent/Esqueleto) issue, rather than a db-sync issue.

@PapaSwer
Copy link

PapaSwer commented Nov 4, 2020

Is there anyway to import the fixed library to work with cardano-db-sync?

@erikd
Copy link
Contributor Author

erikd commented Nov 4, 2020

I need to investigate that, but it is not at the top of my list if priorities.

Last time I tried, I was able to update Persistent but not able to update Esqueleto. I need to be able to update both.

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 a pull request may close this issue.

2 participants