Django

Code

Changeset 6965

Show
Ignore:
Timestamp:
12/21/07 12:49:07 (1 year ago)
Author:
mboersma
Message:

Set Oracle stmtcachesize to 20 instead of 0 for a performance boost.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/db/backends/oracle/base.py

    r6963 r6965  
    433433            except ValueError: 
    434434                pass 
     435            try: 
     436                self.connection.stmtcachesize = 20 
     437            except: 
     438                # Django docs specify cx_Oracle version 4.3.1 or higher, but 
     439                # stmtcachesize is available only in 4.3.2 and up. 
     440                pass 
    435441        if not cursor: 
    436442            cursor = FormatStylePlaceholderCursor(self.connection)