mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
8ec103ea0b
* mark some of dbbackend private * fetchBy* functions for Queries * shift in-memory filtering into the transaction stream - removes irrelevant contracts from memory as soon as possible for fetch by contract ID and key in-memory * push the three synchronous search varieties into new signatures * replace the core findByContract* functions with DB-delegating versions * remove the GADT equality and most of the explicit traversals - compiles again, finally * factoring * ContractDao wrappers for fetchById and fetchByKey * DB version of findByContractId * DB version of findByContractKey * Search is the split of ContractsService * fix SQL for keys * trade the typeclass for a sum type - sealed instead of final because of the path dependency on ContractsService instance * number conversion is done already in ContractDao * make fetch-by-key tests depend on proper number conversion for SQL * add changelog CHANGELOG_BEGIN - [JSON API] ``/v1/fetch`` now uses the Postgres database, if configured, to look up contracts by ID or key, except when querying a contract by ID without its corresponding template ID. The fallback in-memory version of ``/v1/fetch`` is also now significantly more efficient for large datasets, though still linear. You may optionally re-create JSON API's database to take full advantage. See `issue #7993 <https://github.com/digital-asset/daml/pull/7993>`__. CHANGELOG_END * use search.search for search - suggested by @cocreature; thanks * add an index for contract key lookups - suggested by @cocreature; thanks |
||
---|---|---|
.. | ||
src/main/scala/com/digitalasset/http/dbbackend | ||
BUILD.bazel |