phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yuhao Bi <>
Subject Re: Secondary index for narrow tables. Use it or just do "double insert"
Date Mon, 13 Jul 2015 10:20:15 GMT

I would like to suggest you to use the phoenix secondary index.
It is because,
1.You can choose global index or local index(gain a better performance).
2.Just create index on id2 and query with indexHint can save your disk

And yes secondary index is done by coprocessor.
Am I right?

2015-07-13 17:52 GMT+08:00 Serega Sheypak <>:

> Hi, I have an immutable table with 4 columns:
> id1, id2, meta_id1, meta_id2.
> Primary key is id1, I select all fields from table "row" by id1. So it's
> the fastest way to get data.
> Second access path is to select by id2.
> I have serious mixed workload. What is better:
> 1. use secondary index for id2
> 2. just insert two rows:
> id1, id2, meta_id1, meta_id2
> id2, id1, meta_id1, meta_id2
> and avoid using secondary index.
> P.S.
> Tried to read PPT notes. What is index for immutable table? It's second
> "invisible" table which points id2 as key to id1 (in my case) updated by
> coprocessor?

View raw message