-
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.
Backport: Support deletion of a large number of contracts (#11646)
* Support deletion of a large number of contracts (#10353) Backport of #10353 / 9c9b91e. * 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]> * backport past some moves and type parameter adds * backport encodeCreateAndExerciseCommand from #9837 / 25b7e54 Co-authored-by: Moritz Kiefer <[email protected]>
- Loading branch information
1 parent
6bf19fc
commit 56531e8
Showing
6 changed files
with
163 additions
and
10 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