본문 바로가기
개발/ALGOLIA

알고리아 Managing Results(3-24)

by dev_caleb 2022. 3. 4.
728x90

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

복제본이 레코드 수에 미치는 영향

 

https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas-impact-on-pricing/

 

Effect of replicas on number of records | Algolia

Find out how replicas impact the number of records. Standard replicas increase the number of records; virtual replicas don't.

www.algolia.com

 

 

Number of records

Algolia counts the number of records differently depending on the type of replica - that is whether it’s standard or virtual replica.

알골리아는 복제본의 종류에 따라 레코드 수를 다르게 계산합니다. 즉, 표준 복제본인지 가상 복제본인지 여부입니다.

 

Standard replicas#

Standard replica indices “replicate” or copy the primary index’s records; standard replicas have the same content but can have their own configuration.

Because of this, if your primary has 1,000 records and you create two standard replicas, you end up with 3,000 Algolia records.

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 standard replicas).

표준 복제본 색인은 기본 인덱스의 레코드를 "복제"하거나 복사합니다. 표준 복제본은 동일한 내용을 가지지만 자체 구성을 가질 수 있습니다.
이 때문에 Primary에 1,000개의 레코드가 있고 두 개의 표준 복제본을 만들 경우 3,000개의 알골리아 레코드가 생성됩니다.
기본적으로 특정 인덱스에 대해 저장된 총 레코드 수는 주 인덱스에 있는 레코드 수에 복제본 수를 곱한 값과 같습니다.
총 레코드 크기 = 주 인덱스의 레코드 수 *(1 + 표준 복제본 수).

Virtual replicas

As virtual replicas are a “view” of their primary indices they don’t increase the number of records.

가상 복제본은 기본 색인의 "보기"이므로 레코드 수를 늘리지 않습니다.

Indexing operations#

Whether you are using standard or virtual replicas, only operations on the primary index counts 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 don’t add anything to your operation count.
  • Forwarding settings from your primary index to your replicas using the forwardToReplicassetting won’t add additional operation counts.
  • Adding settings directly to your standard or virtual replicas count as one operation.
  • Adding synonyms and Rules to your standard or virtual replicas count as operations.

표준 복제본을 사용하든 가상 복제본을 사용하든 주 인덱스에 대한 작업만 인덱싱 작업으로 계산됩니다.
데이터를 기본 인덱스로 보내거나 기존 데이터를 업데이트하면 변경 내용이 복제본 인덱스로 자동으로 전달됩니다. 복제본 색인의 변경사항은 작업 횟수에 아무것도 추가하지 않습니다.
ForwardToRepliceting을 사용하여 기본 색인에서 복제본으로 설정을 전달해도 추가 작업 수는 추가되지 않습니다.
표준 또는 가상 복제본에 직접 설정을 추가하는 것은 하나의 작업으로 간주됩니다.
표준 또는 가상 복제본에 동의어 및 규칙을 추가하면 작업으로 간주됩니다.

What happens when you detach a replica from its primary?

복제본을 Primary에서 분리하면 어떻게 됩니까?

 

If you turn a standard or virtual 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.

표준 또는 가상 복제본을 기본 인덱스와 분리하여 일반 인덱스로 변경하면 해당 시점부터의 모든 인덱싱 작업이 계산되어 월별 작업 개수에 추가됩니다.

 

728x90

'개발 > ALGOLIA' 카테고리의 다른 글

알고리아 Managing Results(3-26)  (0) 2022.03.05
알고리아 Managing Results(3-25)  (0) 2022.03.05
알고리아 Managing Results(3-23)  (0) 2022.03.04
알고리아 Managing Results(3-22)  (0) 2022.03.04
알고리아 Managing Results(3-21)  (0) 2022.03.04