Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 42548 invoked from network); 19 May 2010 21:38:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 May 2010 21:38:18 -0000 Received: (qmail 20455 invoked by uid 500); 19 May 2010 21:38:18 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 20439 invoked by uid 500); 19 May 2010 21:38:18 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 20431 invoked by uid 99); 19 May 2010 21:38:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 May 2010 21:38:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 May 2010 21:38:16 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4JLbsaa019154 for ; Wed, 19 May 2010 21:37:55 GMT Message-ID: <28544274.25241274305074962.JavaMail.jira@thor> Date: Wed, 19 May 2010 17:37:54 -0400 (EDT) From: "Gary Dusbabek (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Commented: (CASSANDRA-932) Use cfids instead of cfnames for major operations. In-Reply-To: <1380819837.578061269954747551.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869359#action_12869359 ] Gary Dusbabek commented on CASSANDRA-932: ----------------------------------------- I'd prefer for this ticket to actually use Table.getColumnFamilyStore(int cfId) instead of merely deprecating Table.getColumnFamilyStore(String cfName). This probably means pushing cfid into a few places where it currently isn't (QueryPath is the big one). Is that too much work to chew off? > Use cfids instead of cfnames for major operations. > -------------------------------------------------- > > Key: CASSANDRA-932 > URL: https://issues.apache.org/jira/browse/CASSANDRA-932 > Project: Cassandra > Issue Type: Improvement > Affects Versions: 0.7 > Reporter: Gary Dusbabek > Assignee: Stu Hood > Fix For: 0.7 > > Attachments: 0001-Remove-redundant-cfNamesMap-in-Table.patch, 0002-Add-easy-reverse-lookup-from-id-cf.patch, 0003-Remove-name-field-from-ColumnFamily-and-clean-up-mem.patch > > > CF.id() should be used in place of CF.name() for looking up column families. > In pragmatic terms this means that: > * maps that store CF or CFS should use id as the key. > * CF.name() should be eliminated and replaced by a toString() that includes the cfid and name. > * other things I can't immediately think of. > We might even go so far as to change the way we name the sstable files to use cfid instead of name. This would make renaming CFs a simpler (and quicker) operation. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.