Mingyuan (Jasper) Li
12/05/2024, 7:28 PMtsense.collections(colleciton_name).update({ fields: fieldsToAdd });
to update the schema, I have set range_index: true. I saw the columns are added in the schema on the website, but i didn't seed anything about range_index in the schema, is this normal?Mingyuan (Jasper) Li
12/05/2024, 7:33 PMMingyuan (Jasper) Li
12/05/2024, 7:33 PMJason Bosco
12/05/2024, 7:49 PMMingyuan (Jasper) Li
12/05/2024, 7:51 PMJason Bosco
12/05/2024, 7:52 PMMingyuan (Jasper) Li
12/05/2024, 8:00 PMDhruv Vora
12/12/2024, 9:32 PMJason Bosco
12/12/2024, 9:34 PMDhruv Vora
12/12/2024, 9:34 PMDhruv Vora
12/12/2024, 9:34 PMJason Bosco
12/12/2024, 9:35 PMDhruv Vora
12/12/2024, 9:36 PMDhruv Vora
12/12/2024, 9:36 PMJason Bosco
12/12/2024, 9:36 PMDhruv Vora
12/12/2024, 9:37 PMDhruv Vora
12/12/2024, 9:37 PMDhruv Vora
12/12/2024, 9:37 PMJason Bosco
12/12/2024, 9:37 PMDhruv Vora
12/12/2024, 9:37 PMDhruv Vora
12/12/2024, 9:38 PMDhruv Vora
12/12/2024, 9:38 PMJason Bosco
12/12/2024, 9:38 PMDhruv Vora
12/12/2024, 9:39 PMJason Bosco
12/12/2024, 9:41 PMso i'm assuming removing old fields wont really help us out then right?Correct, that won't help with speeding up schema changes. But if you're able to drop unused fields, then in general you'll conserve RAM and will speed up indexing.
Do you have any suggestions on how we can minimize write downtime?The more CPU cores you have the faster the operation will be, and you also want to combine multiple field changes into a single schema change operation, instead of doing one field at a time.
Dhruv Vora
12/12/2024, 9:43 PMDhruv Vora
12/16/2024, 6:16 PMJason Bosco
12/17/2024, 6:09 AMIf a schema were to be updated, we just make a new collection with the schema,This would be the recommended way to do it, except for the strikethrough. Instead of that, you want to just resync the data from your primary database into the new collection. That way you don't have touch the existing collection that's already serving traffic.export all docs from old collection, import into new collection, then switch alias.