Posted: Wed Nov 04, 2009 11:29 am Post subject: Best way to fetch huge records in WMB v6.0 JCN
Disciple
Joined: 18 Apr 2005 Posts: 179
Hi,
We are trying to fetch a large number of records in java compute node using the standard select statement. This is already giving issues in FVT. We are fetting a lot "application heap size exceeded" SQL errors if the records cound increases to more than say 200.
Although currently we can manually run this SQL query to run in batches(of 100s) by setting some temp value for other records. But we are looking for a permanent solution for this.
One thing that came up was : using the Fetch Cursors to limit the select query to 100 max and go in loops till end.
Does this make sense? can this be implemented in WMB? a few examples would help.
Posted: Wed Nov 04, 2009 11:55 am Post subject: Re: Best way to fetch huge records in WMB v6.0 JCN
Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
bprasana wrote:
We are trying to fetch a large number of records in java compute node using the standard select statement.
Why Java? Why in batches?
bprasana wrote:
One thing that came up was : using the Fetch Cursors to limit the select query to 100 max and go in loops till end.
Does this make sense?
I doubt it makes sense. Database cursors are notoriously inefficient and get worse the deep you go through a table.
bprasana wrote:
can this be implemented in WMB?
Probably - you can do most anything in a JCN. How much of a good idea it is forms another question entirely.
I think a bit of background on your requirement may yield better advice here. Or at least answers to my 2 questions above! _________________ Honesty is the best policy.
Insanity is the best defence.
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