Code Monkey home page Code Monkey logo

Comments (4)

funny-falcon avatar funny-falcon commented on August 19, 2024

Why do you want to do select without limit?

Note, you may specify limit 1000000000. But if you really have 1000000000 tuples, tarantool will serve only this query until all 100000000 tuples will be sent. No other queries will be processed at the same moment. (well, it is not exact truth, but quite close to truth).

And all those 1000000000 tuples will be materialized in go connector. Even if tuple contains one integer, response first will be read into 1-4GB buffer, then deserialized into 4GB array (if you use typed query).

So I ask you again: why do you want select without limit?
Perhaps I just don't understand exactly your use case.

from go-tarantool.

capsulated avatar capsulated commented on August 19, 2024

Simply in the original (in lua, tarantool console) there is no limit in plane select. That's why I asked. I looked at the type of the variable - it was uint32 - values is 0 to 4294967295 and I take this. Anyway, thank you! Without this library work with tarantool in golang would be very sad! )

from go-tarantool.

funny-falcon avatar funny-falcon commented on August 19, 2024

There is default limit in lua's select (iirc, i could be mistaken)
It is just not so cheap to make default value in Go: either it is hidden allocation, or another function name. So we decided to make it always explicit.

May be, next api version (if ever happens) will use struct as named arguments, so omitted fields will be default

May this issue be closed?

from go-tarantool.

capsulated avatar capsulated commented on August 19, 2024

Maybe in lua's select the limit not explicitly declared and maybe exist default limit, I do not know exactly, because in documentation i don't find something about it.

Yep, you can close the issue. Thank you for replay and for your work! Спасибо )

from go-tarantool.

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.