Skip to content

performance for CLOB column type is very slow #63

@sealor

Description

@sealor

We noticed a performance problem when using CLOB columns versus LONG columns. This problem does not occur with JDBC drivers.

Test scenario:

  • table with one CLOB column
  • 8192 rows with one column containing 'abc'
  • querying with cx_Oracle: 31186 ms
  • querying with OJDBC: 359 ms

I already wrote a StackOverFlow question where you can find the exact code I used:

https://stackoverflow.com/questions/45571421/how-can-i-improve-query-performance-for-clob-and-long-values-in-oracle-db-cx-or

  1. What is your version of Python? Is it 32-bit or 64-bit?
    Python 3.6.2 (default, Jul 31 2017, 10:36:59) on Linux

  2. What is your version of cx_Oracle?
    cx_Oracle-5.3

  3. What is your version of the Oracle client (e.g. Instant Client)? How was it installed? Where is it installed?
    Oracle client Release 11.2.0.4.0

  4. What is your version of the Oracle Database?
    Oracle Database 12c Enterprise Edition 12.1.0.2.0 64bit

  5. What is your OS and version?
    Linux - SLES11

  6. What compiler version did you use? For example, with GCC, run gcc --version.
    gcc 4.3.4

  7. What environment variables did you set? How exactly did you set them?

  8. What exact command caused the problem (e.g. what command did you try to
    install with)? Who were you logged in as?
    normal user (not root)

  9. What error(s) you are seeing?
    very slow query performance with big datasets containing column "CLOB"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions