Skip to content

Performance issue dealing with CLOB #467

@crackman77

Description

@crackman77

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions