Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9BE239625 for ; Sat, 9 Jun 2012 05:53:27 +0000 (UTC) Received: (qmail 85367 invoked by uid 500); 9 Jun 2012 05:53:27 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 85187 invoked by uid 500); 9 Jun 2012 05:53:26 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 84276 invoked by uid 99); 9 Jun 2012 05:53:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Jun 2012 05:53:24 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of robert.newson@gmail.com designates 74.125.82.180 as permitted sender) Received: from [74.125.82.180] (HELO mail-we0-f180.google.com) (74.125.82.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Jun 2012 05:53:16 +0000 Received: by weyt11 with SMTP id t11so1215132wey.11 for ; Fri, 08 Jun 2012 22:52:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=QdZ4fxvXBj5bQk/s13INdv8PQe3aTzXSzftgKWIDJlI=; b=AgMBAFbYUeIL1ueuwxOU4hXBGyumWvew4Fn0uc2HkPcJNQ23O/rVg+g5/fxXy1NISJ RQkURiTvbWNKWkKWjoi85RPHJHf85LSlKUWom643+NGMGCzy37/x+FeqfZ9ABgPsEogY axPfsko1a931N9h2ra/8KWQ41w3e173cgoBGpA98WXYiXp5V0kEP64CR5u1y9VdL1k4p 2JjSuW+iuFSOhsvoRpqzAkrjXgwWAli7KkDrjoy0yJv6OyJLIgdn0H4jR8Zd+OLfUaZh crmADjjXPz+FvAOWyx/AvLu41EaOukS39BrEZplmaZnqFA/yF+RR0zgGTtanWh0C8RFl ZJ1g== Received: by 10.180.100.2 with SMTP id eu2mr5742789wib.10.1339221174836; Fri, 08 Jun 2012 22:52:54 -0700 (PDT) Received: from [192.168.1.7] (79-77-212-69.dynamic.dsl.as9105.com. [79.77.212.69]) by mx.google.com with ESMTPS id j4sm6314918wiz.1.2012.06.08.22.52.50 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 08 Jun 2012 22:52:51 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1278) Subject: Re: versioning for sensors data storage From: Robert Newson In-Reply-To: Date: Sat, 9 Jun 2012 06:52:48 +0100 Content-Transfer-Encoding: 7bit Message-Id: <233494A3-4F5E-4BF8-8094-DB66174B97A8@gmail.com> References: To: dev@couchdb.apache.org X-Mailer: Apple Mail (2.1278) X-Virus-Checked: Checked by ClamAV on apache.org user@ please. On 8 Jun 2012, at 12:08, Maxim Osipov wrote: > Hi, > > Warning: I'm new to CouchDB! And I'm in a process pf selecting a > database to store data from sensors. The scenario looks like this: > > There are sensors on the net (may be thousands or later millions) for > things like temperature, motion, etc. Each sensors has an IPv6 address > and pushes data to central server in JSON format, like: > { temp: 36.6; humidity: 80 } > We don't know in advance what exactly sensor will push, but most of > the time the format of JSON structure is the same. Data is updated ... > say every second for each sensor. > > From the "architecture" point of view it could be a nice solution with > CouchDB, where each sensor is represented by a document and each > sample of sensor data is a version of this document. > > The questions are: > - do we have time/date information for versions > - is it easy/good to access document version history > - what is a limit on number of versions and how it affects performance > - is it possible/easy/good to get a time snapshot of database > > All other comments are also welcome! > > Kind regards, > Maxim > > -- > Maxim Osipov > Flexibity Ltd.