Thanks for the reply! I thus have two questions more: 1) is it true that filtering on timestamps doesn't affect performance..? 2) could you send me a little snippet of how you would do such a filter (by row key + timestamps)? For example get all rows whose key starts with 'someid-' and whose timestamps is greater than some timestamp?
Best, Flavio On Tue, Jul 2, 2013 at 6:25 PM, Ted Yu <[email protected]> wrote: > bq. Using timestamp in row-keys is discouraged > > The above is true. > Prefixing row key with timestamp would create hot region. > > bq. should I filter by a simpler row-key plus a filter on timestamp? > > You can do the above. > > On Tue, Jul 2, 2013 at 9:13 AM, Flavio Pompermaier <[email protected] > >wrote: > > > Hi to everybody, > > > > in my use case I have to perform batch analysis skipping old data. > > For example, I want to process all rows created after a certain > timestamp, > > passed as parameter. > > > > What is the most effective way to do this? > > Should I design my row-key to embed timestamp? > > Or just filtering by timestamp of the row is fast as well? Or what else? > > > > Initially I was thinking to compose my key as: > > timestamp|source|title|type > > > > but: > > > > 1) Using timestamp in row-keys is discouraged > > 2) If this design is ok, using this approach I still have problems > > filtering by timestamp because I cannot found a way to numerically filer > > (instead of alphanumerically/by string). Example: > > 1372776400441|something has timestamp lesser > > than 1372778470913|somethingelse but I cannot filter all row whose key is > > "numerically" greater than 1372776400441. Is it possible to overcome this > > issue? > > 3) If this design is not ok, should I filter by a simpler row-key plus a > > filter on timestamp? Or what else? > > > > Best, > > Flavio > > > -- Flavio Pompermaier *Development Department *_______________________________________________ *OKKAM**Srl **- www.okkam.it* *Phone:* +(39) 0461 283 702 *Fax:* + (39) 0461 186 6433 *Email:* [email protected] *Headquarters:* Trento (Italy), fraz. Villazzano, Salita dei Molini 2 *Registered office:* Trento (Italy), via Segantini 23 Confidentially notice. This e-mail transmission may contain legally privileged and/or confidential information. Please do not read it if you are not the intended recipient(S). Any use, distribution, reproduction or disclosure by any other person is strictly prohibited. If you have received this e-mail in error, please notify the sender and destroy the original transmission and its attachments without reading or saving it in any manner.
