To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=58268
                  Issue #:|58268
                  Summary:|Performance issue:  OO makes unnecessary calls to
                          |ODBC API
                Component:|Database access
                  Version:|OOo 2.0
                 Platform:|PC
                      URL:|
               OS/Version:|Windows XP
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|none
              Assigned to:|dbaneedsconfirm
              Reported by:|johngrubb





------- Additional comments from [EMAIL PROTECTED] Mon Nov 21 13:18:16 -0800 
2005 -------
When the application lists the avaialable tables for a list (like a drop down in
the DataPilot),  it makes extra calls for connection level attribute for each
table. A quick snippet from a trace:

========================================================================

scalc           1388-116c       EXIT  SQLGetData  with return code 0 
(SQL_SUCCESS)
                HSTMT               058338B8
                UWORD                        3 
                SWORD                        1 <SQL_C_CHAR>
                PTR                 0x00E1DC9C [       7] "ACCOUNT"
                SQLLEN                  2047
                SQLLEN *            0x00E1E4D8 (7)

scalc           1388-116c       ENTER SQLGetInfoW 
                HDBC                058315E8
                UWORD                       29 <SQL_IDENTIFIER_QUOTE_CHAR>
                PTR                 0x05834180 
                SWORD                     1022 
                SWORD *             0x00E1E474

scalc           1388-116c       EXIT  SQLGetInfoW  with return code 0 
(SQL_SUCCESS)
                HDBC                058315E8
                UWORD                       29 <SQL_IDENTIFIER_QUOTE_CHAR>
                PTR                 0x05834180 [       2] """
                SWORD                     1022 
                SWORD *             0x00E1E474 (2)

scalc           1388-116c       ENTER SQLGetInfoW 
                HDBC                058315E8
                UWORD                       92 <SQL_CATALOG_USAGE>
                PTR                 00E1E4A8
                SWORD                        4 
                SWORD *             0x00E1E496

scalc           1388-116c       EXIT  SQLGetInfoW  with return code 0 
(SQL_SUCCESS)
                HDBC                058315E8
                UWORD                       92 <SQL_CATALOG_USAGE>
                PTR                 00E1E4A8
                SWORD                        4 
                SWORD *             0x00E1E496 (4)

scalc           1388-116c       ENTER SQLGetInfoW 
                HDBC                058315E8
                UWORD                       41 <SQL_CATALOG_NAME_SEPARATOR>
                PTR                 0x05834180 
                SWORD                     1022 
                SWORD *             0x00E1E474

scalc           1388-116c       EXIT  SQLGetInfoW  with return code 0 
(SQL_SUCCESS)
                HDBC                058315E8
                UWORD                       41 <SQL_CATALOG_NAME_SEPARATOR>
                PTR                 0x05834180 [       2] "."
                SWORD                     1022 
                SWORD *             0x00E1E474 (2)

scalc           1388-116c       ENTER SQLGetInfoW 
                HDBC                058315E8
                UWORD                      114 <SQL_CATALOG_LOCATION>
                PTR                 0x00E1E4A8
                SWORD                        2 
                SWORD *             0x00E1E496

scalc           1388-116c       EXIT  SQLGetInfoW  with return code 0 
(SQL_SUCCESS)
                HDBC                058315E8
                UWORD                      114 <SQL_CATALOG_LOCATION>
                PTR                 0x00E1E4A8 (1)
                SWORD                        2 
                SWORD *             0x00E1E496 (2)

scalc           1388-116c       ENTER SQLGetInfoW 
                HDBC                058315E8
                UWORD                       91 <SQL_OWNER_USAGE>
                PTR                 00E1E4A8
                SWORD                        4 
                SWORD *             0x00E1E496

scalc           1388-116c       EXIT  SQLGetInfoW  with return code 0 
(SQL_SUCCESS)
                HDBC                058315E8
                UWORD                       91 <SQL_OWNER_USAGE>
                PTR                 00E1E4A8
                SWORD                        4 
                SWORD *             0x00E1E496 (4)

===========================================================================

SQLGetInfoW is a repository for Connection level attributes.  These are not
checked at connection time,  but are for each table.  They should not change on
a per table basis.  The calls are based on an HDBC,  not an HSTMT.  In most
cases this will not have a huge penalty,  but drivers may not cache the
information,  requing round trips to the DB,  and it generates significant extra
calls in the trace.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to