#community-help

Updating Typesense Server After Put/Patch API Use

TLDR KARTHICK asks about updating the Typesense server after using the PUT/PATCH API. Kishore Nallan explains various options and mentions background jobs, adding that there's no pre-written material regarding it. KARTHICK appreciates the assistance.

Powered by Struct AI

1

5
13mo
Solved
Join the chat
Nov 16, 2022 (13 months ago)
KARTHICK
Photo of md5-9885c2d5db3a85d24bc9c11809bcaf50
KARTHICK
10:47 AM
or else do i need to update the typesense server after i done the PUT/PATCH api from the db
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
11:37 AM
You can update Typesense at the same as you update your DB. Or you can write to a queue and have a background job that reads from the queue and update Typesense.

If the database is small and you don't need latest updates, you can also batch update the Typesense server periodically with the full data dump.
Nov 17, 2022 (13 months ago)
KARTHICK
Photo of md5-9885c2d5db3a85d24bc9c11809bcaf50
KARTHICK
05:03 AM
Actually i have doubt about this writing to a queue and have a background job that reads from the queue and update Typesense.Could you please ref any material for node js about this issue that have already faced by anyone. Thanks in advance.
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
06:21 AM
We don't have any pre-written materials to share, sorry. But the logic is the same for any secondary indexing that you want to ingest data into.
KARTHICK
Photo of md5-9885c2d5db3a85d24bc9c11809bcaf50
KARTHICK
06:22 AM
Ya Kishore Nallan thanks for ur time. Have a great day.

1