Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question

last "n" query

I've got entries with a timestamp that I'm writing to a partitioned space (embedded in a PU with code / services) and I'm wondering how to query across the partitions to get the last "n" items by timestamp most efficiently.

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=2352]{quote}

asked 2008-05-27 20:51:04 -0600

jcarreira gravatar image

updated 2013-08-08 09:52:00 -0600

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

You should use remoting + extended indexing with bigger/less than query.

See an example that performs count on data across multiple partitions using remoting here (ala Map Reduce implementation):


answered 2008-05-27 22:23:51 -0600

shay hassidim gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2008-05-27 20:51:04 -0600

Seen: 56 times

Last updated: May 27 '08