Coder Social home page Coder Social logo

Comments (2)

holgerkoser avatar holgerkoser commented on September 28, 2024

All queries with LIMIT I have ever executed returned very fast. I am not able to reproduce this issue with the given description of the problem. However, there two undefined variables in the code example. One is query the other is values. I also do not understand why you use prepared statement without any parameters. You also do not describe which columns your table contains ... How should I help if you do not describe in details what are you doing and provide all the information to reproduce the issue.

What is the result if you do not prepare?

console.time('no prepare');
client.exec("select * from TABLE where A=5 order by B limit 200", function(err, rows) {
  console.timeEnd('no prepare');
});

What is the result if you only select A?

console.time('select A');
client.exec("select A from TABLE where A=5 order by B limit 200", function(err, rows) {
  console.timeEnd('select A');
});

What is the result if you do not auto fetch complete rows?

console.time('no autoFetch');
client.execute("select * from TABLE where A=5 order by B limit 200", function(err, rs) {
  console.timeEnd('no autoFetch');
});

from node-hdb.

abh1kg avatar abh1kg commented on September 28, 2024

Hello Holger,
I should've closed this issue earlier and apologies for providing incomplete information. I should've mentioned that one of the columns in the table was of type NCLOB and I was auto-fetching all rows, instead of using a resultSet. Using a result set and some streaming logic, the fetch times are manageable now.

I am closing this. Thank you for your help and apologies once again.

Best Regards, Abhi

from node-hdb.

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.