Comments (4)
Strange. Only 888df3d changed Next() between aa4eaea and 7a9e6c2.
If you can create a benchmark/test function for it, that would be the best.
Till that, first I'd comment out all the debug messages in Next, then look
around in fetchOneInto, maybe the reflect changes introduced such
performance degradation.
If you're adventureous enough, you can try out gopkg.in/rana/ora.v2
2015-08-26 15:47 GMT+02:00 Ricardo Smania [email protected]:
I was using aa4eaea
aa4eaea
, and when I updated to 7a9e6c2
7a9e6c2
I noticed a huge performance hit.To test I used the database/sql compatible driver, querying and fetching 1
million records. I'm using the same machine and database, just changing the
repository between tests.Old version: 56k rows/second
New version: 30k rows/secondI replaced the Next() func
https://github.com/go-goracle/goracle/blob/v1/driver.go#L225-L245 with
the old one and the performance increased dramatically, but it is still a
little slower than the old one, so I suspect something else is also to
blame:
New version with old Next(): 48k rows/second—
Reply to this email directly or view it on GitHub
#8.
from goracle.
@tgulacsi I'm pretty sure 888df3d caused it.
When I have some spare time I'll create a benchmark function and try to investigate it.
I have tried Rana, but the database/sql implementation only reads 11.5k rows/sec. Goracle reads 56k (before 888df3d), and go-oci8 52k.
But Rana's specific Oracle implementation looks very promising. Right now I'm thinking about using Goracle for generic database/sql and Rana for PL/SQL, sys_refcursors and such. Like you said in your readme, it does have a better syntax. How about joining forces and making a single driver with the best of both? =)
from goracle.
I've contributed some to rana/ora:
https://github.com/rana/ora/commits/master :)
If you can provide us a good benchmark function, we can try to optimize
reading of rows.
2015-08-26 17:50 GMT+02:00 Ricardo Smania [email protected]:
@tgulacsi https://github.com/tgulacsi I'm pretty sure 888df3d
888df3d
caused it.When I have some spare time I'll create a benchmark function and try to
investigate it.I have tried Rana, but the database/sql implementation only reads 11.5k
rows/sec. Goracle reads 56k (before 888df3d
888df3d),
and go-oci8 52k.But Rana's specific Oracle implementation looks very promising. Right now
I'm thinking about using Goracle for generic database/sql and Rana for
PL/SQL, sys_refcursors and such. Like you said in your readme, it does have
a better syntax. How about joining forces and making a single driver with
the best of both? =)—
Reply to this email directly or view it on GitHub
#8 (comment).
from goracle.
@ricsmania I've just commited some performance improvement into gopkg.in/rana/ora.v3.
If you're still interested, take a look! It shaves off some time for selecting strings.
from goracle.
Related Issues (20)
- Commit using DBTIMEZONE if contains name, broke goracle in our case HOT 2
- Build errors for Linux 32-bit HOT 2
- Not able to insert more than 9 columns HOT 12
- NamedValue Documentation HOT 1
- Go lang support with Oracle Wallets HOT 1
- sql "in" query with slice not work HOT 2
- Support Factored Subquery HOT 3
- [Question] Can we access the entire error stack? HOT 9
- bytes.ReplaceAll in conn.go required go version 1.12 not 1.11 as stated in README
- Expose odpi dpiConnCreateParams.newPassword HOT 16
- Build errors for Windows 64-bit HOT 5
- Cannot login locally to SYS HOT 3
- Connection configuration HOT 2
- Minimum Oracle DB version HOT 1
- Insert custom date HOT 5
- Error with SQL statement finished with ';' HOT 6
- IPv6 addresses are stripped of square brackets - causing identifier resolution errors HOT 2
- sql.DB.Close got error: Close: ORA-00000: DPI-1011: connection was not acquired from a session pool HOT 2
- Issue downloading package HOT 1
- Connection setting for goracle to connect to Oracle database HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goracle.