Concepts / Managing results / What is the effect of a replica on the number of records?
Mar. 15, 2019

What Is the Effect of a Replica on the Number of Records?

Number of records

Replica indices replicate 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 (primary + replicas) = the number of records in your primary * the number of replicas on that primary index.

Indexing Operations

When you are using replicas, we only count operations on the primary index. Here are some rules to consider:

  • When you send data to a primary index, or update existing data, these changes are automatically forwarded to your replica indices. However, the changes on the replica indices do not add anything to your count.
  • When you forward settings on your primary index to your replicas, using the forwardToReplicas setting, this will not add any additional count.
  • However, when adding settings directly onto your replicas (i.e settings that differ from your primary index’s settings), this will count as 1 operation.
  • Adding synonyms and rules to your replicas will also count as additional 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, all indexing operations from that point forward are counted and therefore added to your monthly operations count.

Did you find this page helpful?