You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I've profiled cx_oracle_on_ctypes on PyPy-2.6.1 with vprof profiler. vprof is a statistical profiler, so it shouldn't affect relative time, spent in different code parts.
Results show that for simple INSERT with 2 variables:
import cx_Oracle
conn = cx_Oracle.connect('user/pass@DB')
cr = conn.cursor()
sql = 'INSERT INTO TEST(num, chr) values(:num, :chr)'
for i in range(10**3):
cr.execute(sql, {'num': i, 'chr': 'test_string'})
conn.commit()
cr.close()
conn.close()
68% of CPU time is spent on variable binding, and 27% is spent on execute().
Here are profiling results:
Hi,
I've profiled cx_oracle_on_ctypes on PyPy-2.6.1 with vprof profiler. vprof is a statistical profiler, so it shouldn't affect relative time, spent in different code parts.
Results show that for simple INSERT with 2 variables:
68% of CPU time is spent on variable binding, and 27% is spent on execute().
Here are profiling results:
I've checked code, however it is not clear if it is possible to improve variable binding performance.
Please advise.
The text was updated successfully, but these errors were encountered: