Git Product home page Git Product logo

Comments (4)

tgulacsi avatar tgulacsi commented on September 28, 2024

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


https://onename.com/tgulacsi

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/second

I 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.

ricsmania avatar ricsmania commented on September 28, 2024

@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.

tgulacsi avatar tgulacsi commented on September 28, 2024

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.


https://onename.com/tgulacsi

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.

tgulacsi avatar tgulacsi commented on September 28, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.