RE: Array size with Delphi

From: Dunbar, Norman <norman.dunbar_at_environment-agency.gov.uk>
Date: Mon, 12 Apr 2010 14:13:03 +0100
Message-ID: <919FC80F27E0C6428106496EDF92A7520C6AEC88_at_EXCCLUS05.PRODDS.NTNL>



Afternoon Adar,
>> ...
>> When working with Java there is something like: fetch array size.
>> How do I change that in a Delphi program?
I suspect that as Delphi apps are compiled, that unless the developer has given you an option somewhere to change the buffer size, that you are dependent on how the setting was configured by the developer at design time. It may also depend on whatever set of components the developer has chosen to use - some are OCI based and do not need the Borland Database Engine while others depend on the BDE.

It may also be possible, if BDE is in use, to configure that (somehow) to change the buffer size. It's been years since I did any Delphi development I'm afraid and I haven't used the BDE in a long long time.

Spookily, I have, under Start->Settings->Control Panel, a BDE Administrator utility. Running that, then:

  • Select the Configuration tab
  • Expand Drivers
  • Expand Native
  • Select Oracle
  • On the right panel, Select ROWSET Size and a hint says "Rowset size for each fetch/insert operation".
  • Change from the default (?) setting of 20 to something better for your application.

The setting will apply to all fetch/inserts using the BDE and so, longer/wider rows will use more memory (on the client) than tables with less data/columns. You could cause some queries to blow your RAM - depending on the size.

If, on the other hand, your application bypasses the BDE, I'm afraid you are probably out of luck.

Cheers,
Norman.

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else. We have checked this email and its attachments for viruses. But you should still check any attachment before opening it. We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes. If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should still check any attachment before opening it. We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.

If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk

--
http://www.freelists.org/webpage/oracle-l
Received on Mon Apr 12 2010 - 08:13:03 CDT

Original text of this message