Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM SQL » View Thread |
Messages 1 to 2 of 2 total |
Extremely slow processing |
Sun, Feb 8 2009 5:01 AM | Permanent Link |
"Al Vas" | Hi,
Have been doing a majot conversion and found some weird speed issues with DBISAM V3.30. As an example I ran an SQL script that creates a table with one field in it. Then I ran insert statements for 900 records. It took over 10 minutes to process. This seems extraordinary slow and I noticed it in various instances and on different PCs (locally and on server). Is this normal? Thanks Alex |
Mon, Feb 9 2009 5:28 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Alex,
<< As an example I ran an SQL script that creates a table with one field in it. Then I ran insert statements for 900 records. It took over 10 minutes to process. This seems extraordinary slow and I noticed it in various instances and on different PCs (locally and on server). Is this normal? >> If the INSERT statement has to open/close all involved tables for every execution then, sure, it can take a long time. Conver the INSERT statement to a parameterized INSERT statement and you will see much faster execution: with MyQuery do begin SQL.Text:='INSERT INTO MyTable VALUES (:Value1, :Value2)'; Prepare; ParamByName('Value1').AsInteger:=100; ParamByName('Value2').AsString:='Test 1'; ExecSQL; ParamByName('Value1').AsInteger:=200; ParamByName('Value2').AsString:='Test 2'; ExecSQL; etc. end; -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Saturday, April 27, 2024 at 08:52 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |