-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance issue to connect to an Oracle database using Oracle's OEM driver #606
Comments
Hi there: I am not sure if this is the culprit, but that driver seems a bit dated. Do you have the ability to upgrade to something more modern? This is what I am using:
|
@detule |
Any updates here, @ThomasSoeiro? |
Hi, |
My IT department tested with version 12, 19.17 and 21, but the issue is still there. V12: start_time <- Sys.time()
con <- dbConnect(drv = odbc::odbc(), dsn = "<v12>")
Sys.time() - start_time
# Time difference of 5.8 mins V19.17: start_time <- Sys.time()
con <- dbConnect(drv = odbc::odbc(), dsn = "<v19.17>")
Sys.time() - start_time
# Time difference of 6.216667 mins V21: start_time <- Sys.time()
con <- dbConnect(drv = odbc::odbc(), dsn = "<v21>")
Sys.time() - start_time
# Time difference of 6.25 mins They used the following config in the 3 cases:
|
And also (from #158): options(connectionObserver = NULL)
start_time <- Sys.time()
con <- dbConnect(drv = odbc::odbc(), dsn = "<v12>")
Sys.time() - start_time
# Time difference of 20.36195 secs |
Thanks / I think this is a manifestation of an issue I am tracking here with some ideas on how we might make this better. I think i might have some time in a couple of weeks to tackle. |
Thanks for tracking this! I should have some time to tackle this in the next couple of weeks I think. I'll ping you then to see if we can test out couple of prototypes. |
Issue Description and Expected Result
When using
package:odbc
with Oracle's OEM driver, the connection is excessively long to establish. Once established, the Connection Pane seems to load objects forever and the session is excessively slow in the meantime:When
dbConnect()
is wrapped in e.g.invisible()
orsystem.time()
, the connection establishes much quicker and the session is not slow. However, the Connection Pane is not populated by the content of the database.This was previously discussed on rstudio/rstudio#12699.
Database
Reproducible Example
This is slow:
A workaround:
Session Info
The text was updated successfully, but these errors were encountered: