iconara / cql-rb

Cassandra CQL 3 binary protocol driver for Ruby
106 stars 31 forks source link

Fly weight prepared statements #108

Closed iconara closed 10 years ago

iconara commented 10 years ago

Since we're keeping track of prepared statements for the ID <-> connection mapping we might just as well make Client#prepare search for existing prepared statements and return them instead of creating a new object and sending a prepare request.