What Is the Effect of a Replica on the Number of Records?
Number of records
Replica indices “replicate” (copy) the content of a primary index; they have the same content but can have their own configuration.
Because of this, if your primary has 1,000 records and you create 2 replicas, you’ll end up with 3,000 records indexed by Algolia.
Essentially, the total number of records stored for a specific index equals the number of records in its primary index multiplied by its replica count.
- total records size = number of records in primary index * (1 + number of replicas).
When you are using replicas, only operations on the primary index are counted as indexing operations.
- When you send data to a primary index, or update existing data, the changes are automatically forwarded to your replica indices. The changes on the replica indices do not add anything to your operation count.
- Forwarding settings from your primary index to your replicas using the
forwardToReplicassetting will not add additional operation counts.
- Adding settings directly to your replicas will count as one operation.
- Adding synonyms and Rules to your replicas will count as operations.
What happens when you detach a replica from its primary?
If you turn a replica into a regular index by separating it from its primary index, all indexing operations (from that point forward) are counted and added to your monthly operations count.