Counting reindexing operations
Reindexing lets you update all records in an index, which you can do with the replaceAllObjects method.
For an index with 10,000 records, the reindexing process:
- creates a temporary index,
- indexes 10,000 records,
- and replaces the production index with the temporary one.
In the example above, the reindex counts as 10,001 operations (10,000 for the writes to the temporary index + 1 operation for the move).
Creating an index doesn’t count as an extra operation because it happens as a byproduct of indexing records.
When running reindexing operations, with the plans released after July 2020, we will charge per usage, and not per operation. The records usage will count the records on the temporary index plus the records on the main index this day.
- If you had 1 index with 100k records and run a reindex, this day you would have 200k records.
- If you had 2 indices with 100k records each and only run a reindex for one of them, this day you will have 300k records.
Additional Resources:
For Indexing Operations: How does Algolia count indexing operations?
For Reindexing Operations: How does Algolia count reindexing operations?
For Sandbox Applications: How does Algolia count operations for sandbox applications?
For Recommend Requests: How is a recommend request calculated against my usage?
For InstantSearch Operations: How does Algolia count InstantSearch operations?
For Refinement Operations: How does Algolia count refinement operations?
For Replica Indices: How does Algolia count operations on replica indices?
For Maximum Queries Per Second: How does Algolia calculate the Maximum QPS (Queries Per Second)?