0

Cosmos DB 常见问题解答在 Cassandra API 部分中说Azure Cosmos DB provides automatic indexing of all attributes without any schema definition. https://docs.microsoft.com/en-us/azure/cosmos-db/faq#does-this-mean-i-dont-have-to-create-more-than-one-index-to-satisfy- the-queries-1

但是当我尝试向WHERE column1 = 'x'我的 CQL 查询添加过滤器时,我从 Datastax cassandra 驱动程序中得到异常,说不支持数据过滤。我试图通过提供绕过客户端驱动程序,ALLOW FILTERING但这次从 cosmos 服务器收到错误,说此功能未实现。

那么,如果为 Cosmos/Cassandra API 实现了自动索引,那么如何使用呢?

4

0 回答 0