-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support deletion of a large number of contracts (#10353)
* Support deletion of a large number of contracts fixes #10339 There are two orthogonal issues here: 1. scalaz’s toVector from the Foldable[Set] instance stackoverflows. I’ve just avoided using that altogether. 2. Oracle doesn’t like more than 1k items in the IN clause. I chunked the queries into chunks of size 1k to fix this. changelog_begin - [JSON API] Fix an error where transactions that delete a large number of contracts resulted in stackoverflows with the PostgreSQL backend and database errors with Oracle. changelog_end * fix benchmark changelog_begin changelog_end * Update ledger-service/db-backend/src/main/scala/com/digitalasset/http/dbbackend/Queries.scala Co-authored-by: Stephen Compall <[email protected]> * Update ledger-service/db-backend/src/main/scala/com/digitalasset/http/dbbackend/Queries.scala Co-authored-by: Stephen Compall <[email protected]> * that's not how you foldA changelog_begin changelog_end Co-authored-by: Stephen Compall <[email protected]>
- Loading branch information
1 parent
1b5f99e
commit 9c9b91e
Showing
8 changed files
with
157 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters