connecting to multiple keyspaces

4 views
Skip to first unread message

Ian Rogers

unread,
Sep 22, 2010, 12:22:16 PM9/22/10
to pandra-dev
Hi Michael,

I’m interested in using Pandra for an internal project.

I’ve noticed that you’ve gone down the route of having all the methods
class-based rather than instance-based. I.e. to support multiple
Keyspaces one has to do a setActivePool($keySpace) call between
updates!

This is not that convenient, and possibly error prone, and it would be
even worse if I wanted a single app to connect to multiple Cassandra
clusters at the same time…

Do you have any thoughts of moving Pandra to be instance-based? – i.e.
one instance per KeySpace/cluster

Cheers,

Ian

Ian Rogers

unread,
Sep 22, 2010, 1:17:18 PM9/22/10
to pandra-dev
I've just noticed this is discussed in http://github.com/mjpearson/Pandra/issues/issue/24

Ian

mjpearson

unread,
Sep 23, 2010, 11:43:19 AM9/23/10
to pandra-dev
Hi Ian,

Thanks that's a fair point, although Core can be used as a singleton
the column container classes don't make any real distinctions about
the cluster(s). I think the final solution will end up looking more
like having a Keyspace 'container' which will be aware of multiple
clusters in a single application instance and the column families etc.
within its keyspace. This should go towards 0.7 support of dynamic
column families and secondary indexes as well and play a little nicer
with simple authentication as well. I'll try to get something out in
the next few weeks.

-michael

On Sep 22, 10:17 am, Ian Rogers <ian.rog...@contactclean.com> wrote:
> I've just noticed this is discussed inhttp://github.com/mjpearson/Pandra/issues/issue/24
Reply all
Reply to author
Forward
0 new messages