Hamp Goodwin
03/20/2025, 6:53 PMHamp Goodwin
03/20/2025, 7:16 PMJason Bosco
03/21/2025, 4:01 AMOk, that's 'fine' but now my terraform state loses reference to the collection,I would recommend not using terraform to maintain Typesense's collection schema structure! That would be like maintaining say MySQL or Postgres table structure using terraform. Instead you want to have your schema in your codebase, just like how you'd maintain DB migrations in your codebase
Jason Bosco
03/21/2025, 4:01 AMI guess this is the documented way.Yup, this is the documented way.
Jason Bosco
03/21/2025, 4:02 AMThe second is to use the bulk document endpoint with upset action 'combined with delete_by'; I don't really follow what the delete_by would be used for.Upserting does not account for documents that have been deleted from your primary DB, that now need to be deleted from Typesense
Hamp Goodwin
03/21/2025, 3:22 PMHamp Goodwin
03/21/2025, 6:19 PM