pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
ODBC settings
4+ messages / 2 participants
[nested] [flat]

* ODBC settings
@ 2014-03-27 16:55 Dev Kumkar <devdas.kumkar@gmail.com>
  2014-03-27 22:30 ` Re: ODBC settings Dev Kumkar <devdas.kumkar@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Dev Kumkar @ 2014-03-27 16:55 UTC (permalink / raw)
  To: pgsql-odbc

Am having a huge sql file which has only insert statements.

For me the time for loading this from a C program using psqlODBCw driver
took
3 minutes.

Then added ODBC settings Protocol and UseServerSidePrepare on Linux machine
but am not able to see any difference with ODBC settings here.

Windows performed better with these settings and could see improvement.

Am I missing anything on Linux side?

Regards...

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: ODBC settings
  2014-03-27 16:55 ODBC settings Dev Kumkar <devdas.kumkar@gmail.com>
@ 2014-03-27 22:30 ` Dev Kumkar <devdas.kumkar@gmail.com>
  2014-03-31 15:18   ` Re: ODBC settings Dev Kumkar <devdas.kumkar@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Dev Kumkar @ 2014-03-27 22:30 UTC (permalink / raw)
  To: pgsql-odbc

On Thu, Mar 27, 2014 at 10:25 PM, Dev Kumkar <devdas.kumkar@gmail.com>wrote:

> Am having a huge sql file which has only insert statements.
>
> For me the time for loading this from a C program using psqlODBCw driver
> took
> 3 minutes.
>
> Then added ODBC settings Protocol and UseServerSidePrepare on Linux
> machine but am not able to see any difference with ODBC settings here.
>
> Windows performed better with these settings and could see improvement.
>
> Am I missing anything on Linux side?
>

Is anything special needs to be done here for Linux platform?
Am clueless, I guess am setting correct parameters on odbc.ini, restart DB
service:

Protocol=7.4-1
UseServerSidePrepare=1

_^_

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: ODBC settings
  2014-03-27 16:55 ODBC settings Dev Kumkar <devdas.kumkar@gmail.com>
  2014-03-27 22:30 ` Re: ODBC settings Dev Kumkar <devdas.kumkar@gmail.com>
@ 2014-03-31 15:18   ` Dev Kumkar <devdas.kumkar@gmail.com>
  2014-03-31 19:33     ` Re: ODBC settings Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Dev Kumkar @ 2014-03-31 15:18 UTC (permalink / raw)
  To: pgsql-odbc

On Fri, Mar 28, 2014 at 4:00 AM, Dev Kumkar <devdas.kumkar@gmail.com> wrote:

> On Thu, Mar 27, 2014 at 10:25 PM, Dev Kumkar <devdas.kumkar@gmail.com>wrote:
>
>> Am having a huge sql file which has only insert statements.
>>
>> For me the time for loading this from a C program using psqlODBCw driver
>> took
>> 3 minutes.
>>
>> Then added ODBC settings Protocol and UseServerSidePrepare on Linux
>> machine but am not able to see any difference with ODBC settings here.
>>
>> Windows performed better with these settings and could see improvement.
>>
>> Am I missing anything on Linux side?
>>
>
> Is anything special needs to be done here for Linux platform?
> Am clueless, I guess am setting correct parameters on odbc.ini, restart DB
> service:
>
> Protocol=7.4-1
> UseServerSidePrepare=1
>

Any Suggestions?
The same settings resulted 2x performance improvement on windows but not
the same is getting achieved on Linux.

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: ODBC settings
  2014-03-27 16:55 ODBC settings Dev Kumkar <devdas.kumkar@gmail.com>
  2014-03-27 22:30 ` Re: ODBC settings Dev Kumkar <devdas.kumkar@gmail.com>
  2014-03-31 15:18   ` Re: ODBC settings Dev Kumkar <devdas.kumkar@gmail.com>
@ 2014-03-31 19:33     ` Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Adrian Klaver @ 2014-03-31 19:33 UTC (permalink / raw)
  To: Dev Kumkar <devdas.kumkar@gmail.com>; pgsql-odbc

On 03/31/2014 08:18 AM, Dev Kumkar wrote:
>

>
> Any Suggestions?
> The same settings resulted 2x performance improvement on windows but not
> the same is getting achieved on Linux.

My question would be what is the actual throughput on Windows vs Linux?

In other words 2x improvement is a relative measure not an absolute one.

Other questions:

Is the setup the same on the Windows vs Linux instances?
The client on the same machine as the server?
The same Postgres server versions?
The same psqlodbc versions?

-- 
Adrian Klaver
adrian.klaver@aklaver.com


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2014-03-31 19:33 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-03-27 16:55 ODBC settings Dev Kumkar <devdas.kumkar@gmail.com>
2014-03-27 22:30 ` Dev Kumkar <devdas.kumkar@gmail.com>
2014-03-31 15:18   ` Dev Kumkar <devdas.kumkar@gmail.com>
2014-03-31 19:33     ` Adrian Klaver <adrian.klaver@aklaver.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox