By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,178 Members | 987 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,178 IT Pros & Developers. It's quick & easy.

ODBC

P: n/a
PostgreSQL
I am using Microsoft Visual FoxPro to connect VIA ODBC using both
a DSN connection and a DSNLess Connection. The DSNLess connection is
Waaaayyyyy... slower than the DSN connection and I am having a problem
trying to figure out what ODBC settings affect performance this much.

using DSN i can pull 4 fields x 953 rows in .266 seconds :)
however using a DSNLess connection the same query takes >179 seconds
(ouch =-O)

the DSN connection settings are all the default expet for
Database = systemdata
Server = 192.168.10.94
Username = postgres
I have been messing around with the DSNLess connection and have tried
changing quite a few of the setting but can't get the speed up, here are
some of the settings. As you can see they are pretty much the same.

lcSqlDriverName= "PostgreSQL"
lcSqlServerName="192.168.10.94"
lcSqlDatabase="systemdata""
lcSqlUserName="postgres"
lcSqlPassword=""
lcSqlPort="5432"
lcSqFetch="100"

lcSqOptimizer="1"
lcSqKsqo="1"
lcSqSqUniqueIndex = "1"
lcSqBoolsAsChar = "1"
lcSqMaxVarcharSize = "254"
lcSqMaxLongVarcharSize = "8190"
lcSqExtraSysTablePrefixes = "dd_;"
lcSqProtocol = "6.4"
lcSqUpdatableCursors = "1"
lcSqLFConversion = "1"
thanks..............

--
Eugene Vital
Any technology indistinguishable from magic is insufficiently advanced.


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly

Nov 12 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Wednesday 15 October 2003 21:08, Gene Vital wrote:
PostgreSQL
I am using Microsoft Visual FoxPro to connect VIA ODBC using both
a DSN connection and a DSNLess Connection. The DSNLess connection is
Waaaayyyyy... slower than the DSN connection and I am having a problem
trying to figure out what ODBC settings affect performance this much.

using DSN i can pull 4 fields x 953 rows in .266 seconds :)
however using a DSNLess connection the same query takes >179 seconds
(ouch =-O)
Ouch indeed. Are you sure all other details are the same? That's almost too
slow.
I have been messing around with the DSNLess connection and have tried
changing quite a few of the setting but can't get the speed up, here are
some of the settings. As you can see they are pretty much the same.


I think if you turn the logging options on in the driver settings for your DSN
connection you can get a trace that shows you your settings.

There's also an ODBC list that might give you more help.

--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.