cassandra-lucene-index icon indicating copy to clipboard operation
cassandra-lucene-index copied to clipboard

High CPU on Query

Open phambryan opened this issue 7 years ago • 2 comments

After loading index into our Cassandra Cluster (7 nodes : 16 cores /32gb per node) with 10M rows.

On load testing of 100 req/s we're seeing 100% CPU on filter.

Is there any way to optimize Lucene Cassandra Index so it wouldn't peg our cluster ?

phambryan avatar Nov 08 '17 23:11 phambryan

Hi @phambryan:

Could you please show us the related filter query ?

ealonsodb avatar Dec 19 '17 16:12 ealonsodb

SELECT * FROM users WHERE expr(users_index, '{ filter: { type: "wildcard", field: "food", value: "*tu*" } }');

The offending query is a double wildcard *term*; it seems that for Phrase is a better approach to lower CPU consumption.

phambryan avatar May 27 '18 15:05 phambryan