Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8A580200B6D for ; Tue, 23 Aug 2016 09:32:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 891B1160ABF; Tue, 23 Aug 2016 07:32:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D38C0160AA5 for ; Tue, 23 Aug 2016 09:32:21 +0200 (CEST) Received: (qmail 64027 invoked by uid 500); 23 Aug 2016 07:32:21 -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 64014 invoked by uid 99); 23 Aug 2016 07:32:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2016 07:32:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id ACFD22C0152 for ; Tue, 23 Aug 2016 07:32:20 +0000 (UTC) Date: Tue, 23 Aug 2016 07:32:20 +0000 (UTC) From: "Marcus Eriksson (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CASSANDRA-12367) Add an API to request the size of a CQL partition MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 23 Aug 2016 07:32:22 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-12367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15432280#comment-15432280 ] Marcus Eriksson edited comment on CASSANDRA-12367 at 8/23/16 7:31 AM: ---------------------------------------------------------------------- Could we use {{SSTableReader.getScanner(Range range, ...)}} instead of scanning all the partitions in the sstable? We would need to create the range so that it includes the token requested but I think it should save us some time by seeking to the correct position directly. edit: And maybe we should output more information about the partition? Like average row size, number of rows, tombstones, etc? was (Author: krummas): Could we use {{SSTableReader.getScanner(Range range, ...)}} instead of scanning all the partitions in the sstable? We would need to create the range so that it includes the token requested but I think it should save us some time by seeking to the correct position directly. > Add an API to request the size of a CQL partition > ------------------------------------------------- > > Key: CASSANDRA-12367 > URL: https://issues.apache.org/jira/browse/CASSANDRA-12367 > Project: Cassandra > Issue Type: Improvement > Reporter: Geoffrey Yu > Assignee: Geoffrey Yu > Priority: Minor > Fix For: 3.x > > Attachments: 12367-trunk.txt > > > It would be useful to have an API that we could use to get the total serialized size of a CQL partition, scoped by keyspace and table, on disk. -- This message was sent by Atlassian JIRA (v6.3.4#6332)