Suggestion for Supporting Bulk Patch-Update API
TLDR Atul suggests supporting bulk patch-update API, but Jason mentions the action=emplace
option which allows sending partial attributes.


Apr 05, 2023 (5 months ago)
Atul
10:24 AMI think we should support bulk
patch-update
API.Right now I can update an attribute of one
row
at a time. Using PATCH
API:PATCH ${TYPESENSE_HOST}/collections/:collection/documents/:id
And we have other option to update using
/collections/products/documents/import?action=upsert
But the problem with the 2nd option is, we need to send all the attributes. Not just changed ones.
Jason
10:25 AMaction=emplace
using which you can send partial attributes
Atul
10:27 AMJason
10:27 AM
Typesense
Indexed 2764 threads (79% resolved)
Similar Threads
Handling Kinesis Stream Event Batching with Typesense
Dui had questions about how to handle Kinesis stream events with Typesense. Kishore Nallan suggested using upsert mode for creation/update and differentiating with logical deletion. After various discussions including identifying and resolving a bug, they finalized to introduce an `emplace` action in Typesense v0.23.


Updating Multiple ID's in a Single Call
Hari asked about updating multiple ids in a single call. Dima suggested bulk import and Jason suggested sending partial documents with `?action=emplace`.

Issues with Version "0.23.0.rc69" and Upsert Request in Typesense
Bill raised a concern about inconsistent performance of version "0.23.0.rc69" and upsert issues in Typesense. Jason advised upgrading to version "0.23" and switching to "emplace" instead of "upsert". Kishore Nallan provided additional clarification.
