우리는 현재 "aerospike"를 테스트 중입니다. 그러나 설명서에서 키에 대해 이해할 수없는 부분이 있습니다.Aerospike 여기서 쿼리 색인 python
key = ('trivium', 'profile', 'data')
# Write a record
client.put(key, {
'name': 'John Doe',
'bin_data': 'KIJSA9878MGU87',
'public_profile': True
})
일반 문서로 쿼리 할 때 네임 스페이스에 대해 읽었습니다.
client = aerospike.client(config).connect()
query = client.query('trivium', 'profile')
query.select('name', 'bin_data')
query.where(p.equals('public_profile', True))
print(query.results())
결과는 널 (null)이지만, 우리는 쿼리가 모든 레코드를 가져 오는 "여기서"문을 eerase 때 문서는 쿼리 보조 인덱스 작업,하지만 어떻게 작동이 있다고?
감사합니다.
답변을 주셔서 감사합니다. Aerospike가 빠르다고 생각합니다. 사용자 관리자에게는이 도구를 사용할 수 있다고 생각했지만 복잡한 쿼리를 작성한 것처럼 보이기 때문에 시스템에 중요합니다. 그러나 우리는 mongo 또는 cassandra와 같은 또 다른 기술을 시도 할 것입니다. 감사합니다. 안부 – UlyssesMarx
물론, 사용 사례에 가장 적합한 솔루션을 사용해야합니다. BTW, stream udfs는 쓰기 쉽습니다. 다음은 간단한 예입니다. https://discuss.aerospike.com/t/record-manipulation-with-more-than-one-filter-lua/3637 및 코드는 https://github.com/pygupta/aerospike-discuss/tree/ 여기에 있습니다. master/topic3637 – pgupta
업데이트 된 github 링크 : https://github.com/pygupta/aerospike-discuss/tree/master/topic3637_streamUDF_multifilter – pgupta