crate / crate_ruby Goto Github PK
View Code? Open in Web Editor NEWA Ruby client library for CrateDB.
License: Apache License 2.0
A Ruby client library for CrateDB.
License: Apache License 2.0
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?
Hi @autophagy and @chaudum,
we would like to run new releases for crate_ruby
ย [1] and activerecord-crate-adapter
[2]. Can I humbly ask you to assign me [3] as a co-owner for both projects on RubyGems.org?
With kind regards,
Andreas.
/cc @hammerhead
[1] https://rubygems.org/gems/crate_ruby
[2] https://rubygems.org/gems/activerecord-crate-adapter
[3] https://rubygems.org/profiles/amotl
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):
Let me know what you think,
Cheers,
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
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
Are you going to support OR bindings like AR or maybe something similar to Mongoid?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.