我试图通过创建索引来优化带有order by子句的N1Ql查询,我对orderby列的顺序以及列的位置应该保持不变以具有正确的索引或排序在CouchBase6.0.3中无关紧要。下面是查询 Select * from employee where type= employee and number='123' and division='456'
order by class,
我创建了这个couchbase索引 CREATE INDEX `idx_additionalOrderCode` ON WHERE _class = "com.entrprise.OrderEntity" 基于此页面中的示例 https://docs.couchbase.com/server/6.0/n1ql/n
我需要的是总的否。可用于条件显示的记录的数量,如- "Page 1 of 'Total Records'“(我在网格中显示数据)。根据Couchbase论坛的说法,排序计数指标应该给出总记录,但它给出的是零。任何帮助都是非常感谢的。使用.NET开发工具包。使用的N1QL查询: select Title where L