Posted: Tue Apr 04, 2006 6:01 am Post subject: Indexing cached tables
Apprentice
Joined: 15 Jul 2002 Posts: 45
Hi,
I have a message flow that does a look up on a db2 table for every message it processes. The number of look up's may vary from 6 to 600.
The table contains 500 rows and is indexed in db2.
To avoid multiple reads from the database, I have cached the look up table into broker memory. But I do not have index built into the table available in memory. This seems to be proving expensive.
Is there a way to put an index on the table in memory ?
You could create another shared row variable that contained references to each of the entries in the main row. Then you can do a select from that row variable to get the reference and then use that to access the data.
BUT, it may not be possible to include references in shared variables. I know it is not possible to share references directly. _________________ I am *not* the model of the modern major general.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum