Map index metadata by index name

Description

For CASSANDRA-7814 we want to add a DESCRIBE INDEX idxname cqlsh command as well as making the INDEX or TABLE redundant, and just be able to do DESCRIBE ksname|tablename|idxname.

At the moment we can retrieve index metadata by looping on all tables and then for each table by looping on all columns. Whilst this is OK, it may cause performance issues for large schemas.

It would be convenient to map the index metadata by index name and store it in a dictionary at the table or keyspace level or both as we've done in this branch:
https://github.com/stef1927/python-driver/tree/7814

We would need this for Cassandra 2.1 if possible.

Environment

None

Pull Requests

None

Activity

Show:
Adam Holmberg
April 21, 2015, 6:37 PM

I have some updates fixing a few things from the original PR: https://github.com/datastax/python-driver/pull/284

Kishan Karunaratne
May 12, 2015, 8:11 PM

There's a Cassandra bug which causes this test to fail intermittently on C* 1.2 and 2.0. Once it has been addressed, I'll push this ticket to resolved.
https://issues.apache.org/jira/browse/CASSANDRA-9310

Kishan Karunaratne
May 15, 2015, 5:51 PM

The C* bug has been fixed and has been patched into their various branches. I've tested to confirm that the failures no longer exist.

Fixed

Assignee

Kishan Karunaratne

Reporter

Stefania Alborghetti

Fix versions

Labels

None

PM Priority

None

External issue ID

None

Doc Impact

None

Reviewer

None

Size

None

Priority

Minor
Configure