Re: 10 row/second insert in ssis

From: "Tsunakawa, Takayuki" <tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com>
To: Bill Kuhn <billkuhnjr(at)gmail(dot)com>
Cc: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, pgsql-odbc <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: 10 row/second insert in ssis
Date: 2016-03-31 02:53:04
Message-ID: 0A3221C70F24FB45833433255569204D1F53CF80@G01JPEXMBYT05
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hello, Bill,

10 row inserts/s is very slow, isn't it? Let's where the slow spot is.

* To know how long the server takes to execute inserts, add "log_min_duration_statement = 0" in postgresql.conf. This will record timing infomation like this in the server log:

LOG: duration: 129.236 ms statement: insert into a values(1);

* To know how long for what the ODBC driver takes, enable logging by adding the following registry values and restarting the application (SSIS?):

key: {HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER}\SOFTWARE\ODBC\ODBC.INI\<your_DSN>
value:
CommLog: REG_DWORD: 1
Debug: REG_DWORD: 1
Logdir: REG_SZ: folder path where you want to store the log files

This will create psqlodbc_<pid>.log and mylog_<pid>.log in the specified folder. <pid> is the process ID of the application using ODBC. If not found, the log files may be stored in the following places:

* C:\
* C:\podbclog
* %HOMEDRIVE%%HOMEPATH%

Regards
Takayuki Tsunakawa

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Tsunakawa, Takayuki 2016-04-01 00:02:15 Re: Some bug fixes and improvements
Previous Message Adrian Klaver 2016-03-30 23:29:32 Re: 10 row/second insert in ssis