0
나는 카우치베이스 주식회사의 문서 이러한 유형이 있습니다카우치베이스 주식회사 인덱스
{
delete: true,
entity: {
id: "1aec5ee9-bb4b-494d-9cfd-b7d890abad76",
name: 'Bob'
}
_class: "com.company.package.A"
}
{
delete: false,
entity: {
id: "5996c870-3b00-4c6a-a569-52b0c9e8adc9",
city: 'London'
}
_class: "com.company.package.B"
}
이러한 쿼리에 대한 더 나은 것 무엇 인덱스 :
select * from bucket where _class = "com.company.package.A" and delete=true and entity.name = "Bob"
select * from bucket where _class = "com.company.package.B" and delete=false and entity.city = "London"
- GSI _class
- GSI에 대한 삭제 에 대한
- entity.name의 GSI (_class = "com.company.package.A"일 경우) entity.city, _class = "com.company.package.B"
OR
- GSI 필드 {entity.name가 _class가 삭제}의 그룹에 대해, _class위한 363,210
- GSI = "com.company.package.A"
- _class = "com.company.package.B"인 경우 필드 그룹 {entity.city, _class, deleted}에 대한 GSI
- 별도의 GSI 색인을 생성하지 마십시오. _class 및 전혀 삭제됨