Delphi XE8 - MS Access / PostgreSQL
Posted: Wed 07 Apr 2021 08:05
Hi,
I use Delphi XE8. I have an old application working with Delphi XE8 and DBMS was MS Access 97 to 2003 working with ADO (TADOQuery). The new version of the application will be with Unidac an postgreSQL, I've finish the transfert but I don't notice a lot of increase speed in some operation. For example I import data from xml file and put them into differents tables :
1) ReadXml
2) Data to temporary tables less faster than ADO, I use :
TUniQuery.Sql.Text := 'SELECT * FROM MyTable WHERE (0 = 1)'
TUniQuery.Open;
TUniQuery.Insert;
TUniQuery.FieldByName('MyField').As.... := Value
....
TUniQuery.Post;
I try do write 'INSERT INTO ....' instead, same result.
Can I do it in a different way, I have to insert 20000 value, it take 8 minutes ?
Regards
I use Delphi XE8. I have an old application working with Delphi XE8 and DBMS was MS Access 97 to 2003 working with ADO (TADOQuery). The new version of the application will be with Unidac an postgreSQL, I've finish the transfert but I don't notice a lot of increase speed in some operation. For example I import data from xml file and put them into differents tables :
1) ReadXml
2) Data to temporary tables less faster than ADO, I use :
TUniQuery.Sql.Text := 'SELECT * FROM MyTable WHERE (0 = 1)'
TUniQuery.Open;
TUniQuery.Insert;
TUniQuery.FieldByName('MyField').As.... := Value
....
TUniQuery.Post;
I try do write 'INSERT INTO ....' instead, same result.
Can I do it in a different way, I have to insert 20000 value, it take 8 minutes ?
Regards