-
Notifications
You must be signed in to change notification settings - Fork 93
Description
Context :
Python 64bits 3.12.7
oracledb==2.5.1
Oracle : 19.18
Run in thick mode
Hello,
I have a script that reads a Parquet file and integrates it into a database. One of the columns contains geospatial data in WKT format. The geometries are "complex" (i.e., they can have tens of thousands of vertices).
I am trying to integrate these data using Oracle's SDO_GEOMETRY constructor, but my query is limited for character strings exceeding 32,768 characters (Error ORA-01461: can bind a LONG value only for insert into a LONG column if the text exceeds this limit).
To bypass this, I used the setinputsizes method to type the column as oracledb.DB_TYPE_CLOB. This works, but performance is significantly degraded compared to integrating data with oracledb.DB_TYPE_VARCHAR (which I use for lighter geometries). Aroud 30-50x more time.
Is there any workaround I could do to speed up my integration?
Some configuration on server-side?
Regards,
Marc