I have a clustered application with a in-memory cache in it. During the runtime i load some data to cache from database. But it takes some time.
Since my cache is replicated i want to trigger the load process from all nodes. Currently only master node is runs the sql.
Let's say i have a simple table as;
column1 column2
field1 field1 . . .
If i have 1000000 rows and 2 nodes, i want to load first 500000 from first node and another 500000 from second node. If node size get's more the number of rows is divided to node count.
But i cannot figure out how to limit and partition the data by using ansi sql standart. I have tried with rownum but the syntax is different for rownum for providers.