Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7D61F64A7 for ; Wed, 18 May 2011 17:35:19 +0000 (UTC) Received: (qmail 30831 invoked by uid 500); 18 May 2011 17:35:17 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 30800 invoked by uid 500); 18 May 2011 17:35:17 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 30792 invoked by uid 99); 18 May 2011 17:35:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 May 2011 17:35:17 +0000 X-ASF-Spam-Status: No, hits=3.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rajkumar.w93@gmail.com designates 209.85.161.44 as permitted sender) Received: from [209.85.161.44] (HELO mail-fx0-f44.google.com) (209.85.161.44) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 May 2011 17:35:10 +0000 Received: by fxm15 with SMTP id 15so1587437fxm.31 for ; Wed, 18 May 2011 10:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:date:x-google-sender-auth :message-id:subject:from:to:content-type; bh=DrNlqw2zjiaNvFLqtqEJ+CtJ/ZMUuOia18b28jq6eAY=; b=Fl00W/1kMpM6Qy1pPfRtBJVDBh/QgZe9Qb2ptows42Buk2cX158hq1A7nftw3UCu/z 5SKsVjqE/bSuvKwuMMDrYgODfstZVmhAn2Ln1QYnHgE4KdTXkydV55pVq6pdbh96HaqR F8PgY0pDcW62nUE7VzJIAYJ3myD3BNpKh6tDg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=OOuYIiSvCNJXofpOaUk4SFCkUTp+I7WBQ6QgYWlrboWmGIjWUA1nSYczTz5wa9OFs6 hoTcBJ2PzfL0cKX+gZc/Hdqb2QVlwwsXwT1rs3Gzt15uBX8v+If++7GVNeFI7+iHm4ea x1aZfDOSdZHgJEVeBWe0rvNGkZDcGnD/0uAb0= MIME-Version: 1.0 Received: by 10.223.76.212 with SMTP id d20mr2732515fak.5.1305740089620; Wed, 18 May 2011 10:34:49 -0700 (PDT) Sender: rajkumar.w93@gmail.com Received: by 10.223.122.71 with HTTP; Wed, 18 May 2011 10:34:49 -0700 (PDT) Date: Wed, 18 May 2011 23:04:49 +0530 X-Google-Sender-Auth: wyBiYu2fvMz1Nn9SmF6OWmDPrBQ Message-ID: Subject: Design for 'Most viewed Discussions' in a forum From: Aditya Narayan To: user Content-Type: multipart/alternative; boundary=00151747378835f85e04a3904e4f --00151747378835f85e04a3904e4f Content-Type: text/plain; charset=ISO-8859-1 ************* For a discussions forum, I need to show a page of most viewed discussions. For implementing this, I maintain a count of views of a discussion & when this views count of a discussion passes a certain threshold limit, the discussion Id is added to a row of most viewed discussions. This row of most viewed discussions contains columns with Integer names & values containing serialized lists of Ids of all discussions whose views count equals the Integral name of this column. Thus if the view count of a discussion increases I'll need to move its 'Id' from serialized list in some column to serialized list in another column whose name represents the updated views count on that discussion. Thus I can get the most viewed discussions by getting the appropriate no of columns from one end of this Integer sorted row. ************ I wanted to get feedback from you all, to know if this is a good design. Thanks --00151747378835f85e04a3904e4f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable *************
For a discussions forum, I need to show a page of most vie= wed discussions.

For implementing this, I maintain a count of views = of a discussion & when this views count of a discussion passes a certai= n threshold limit, the discussion Id is added to a row of most viewed discu= ssions.

This row of most viewed discussions contains columns with Integer names= & values containing serialized lists of Ids of all discussions whose v= iews count equals the Integral name of this column.

Thus if the view= count of a discussion increases I'll need to move its 'Id' fro= m serialized list in some column to serialized list in another column whose= name represents the updated views count on that discussion.

Thus I can get the most viewed discussions by getting the appropriate n= o of columns from one end of this Integer sorted row.

************
I wanted to get feedback from you all, to know if this is a good desi= gn.

Thanks





--00151747378835f85e04a3904e4f--