Giter Site home page Giter Site logo

crate_ruby's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

crate_ruby's Issues

Missing batch in the Gem

I noticed that in the gem 0.0.8, the following command does not work:

    bulk_args = [
  [1, "Post 1", {:street=>'1010 W 2nd Ave', :city=>'New York'}, ['foo','bar']],
  [2, "Post 2", {:street=>'1010 W 2nd Ave', :city=>'San Fran'}, []]
]
  @client.execute("insert into my_table (id, name, address, tags) VALUES (?, ?, ?, ?)", nil, bulk_args)

At the contrary, on the github version, this bulk command works as expected.

I would like to use this action, but I don't know if the last version of this crate_ruby is enough stable.
Will you deliver a new stable version of this gem soon?

Use multiple connections

Hey,
At the moment, this gem only uses the first server from the array we pass, I think it would be very useful to use all of them because sometime under heavy load or when running a lot of request in a short duration, queries ended up failing.
I think it's not because the cluster cannot process the request but simply because of HTTP requests saturation.

I'm willing to work on a patch for this but I'd like your approval first ; mostly to know if it's recommended to run queries directly on secondary nodes while queries are running on the primary. I'm pretty sure it works, but I'm not sure it's recommended.

What I have in mind right now (didn't start coding anything):

  • Retry on a different server if request fails
  • Simple load balancing (round roaming)
  • (Maybe) Advanced load balancing depending on the individual load of each node of the cluster (if possible)

Let me know what you think,
Cheers,

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Clarify purpose of this driver vs. generic PostgreSQL driver

Hi there,

this driver is clearly to consume CrateDB's HTTP API, this should be reflected better within the README document. I think it still has purpose, providing some highlevel DDL-related API methods, as well as a wrapper interface around BLOB tables.

On the other hand, we may want to advise the community to use a generic PostgreSQL driver for regular use with Ruby. Can you recommend a corresponding driver, @hammerhead? Would ruby-pg be the right choice?

See also:

With kind regards,
Andreas.

/cc @seut

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.