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 208FBD3FE for ; Wed, 22 May 2013 09:42:57 +0000 (UTC) Received: (qmail 11591 invoked by uid 500); 22 May 2013 09:42:56 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 11249 invoked by uid 500); 22 May 2013 09:42:56 -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 11226 invoked by uid 99); 22 May 2013 09:42:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 May 2013 09:42:55 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [80.244.253.218] (HELO mail.traeumt.net) (80.244.253.218) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 May 2013 09:42:50 +0000 Received: from [10.0.0.19] (91-66-82-235-dynip.superkabel.de [91.66.82.235]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.traeumt.net (Postfix) with ESMTPSA id 221E6142D8 for ; Wed, 22 May 2013 11:43:02 +0200 (CEST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: music database From: Jan Lehnardt In-Reply-To: Date: Wed, 22 May 2013 11:42:10 +0200 Content-Transfer-Encoding: 7bit Message-Id: <9751FFBA-F077-495D-91B2-295EB42170B7@apache.org> References: <1369211018.23370.YahooMailNeo@web171506.mail.ir2.yahoo.com> To: dev@couchdb.apache.org X-Mailer: Apple Mail (2.1503) X-Virus-Checked: Checked by ClamAV on apache.org On May 22, 2013, at 11:20 , Pavan Sudheendra wrote: > Sorry Jan. I was wrong. Not to worry! :) Jan -- > > > On Wed, May 22, 2013 at 2:43 PM, Jan Lehnardt wrote: > >> >> >> On 22.05.2013, at 10:52, Pavan Sudheendra wrote: >> >>> You can store the files (MP3) in a folder on the server, and the path to >>> the file in your database. >> >> >> >>> You can also save MP3's as binary data, but it >>> is very inefficient and really not a good idea. >> >> The second part of this sentence is a false statement. >> >> Storing music as binary data is fairly efficient in CouchDB. >> >> The conventional wisdom of "don't store binaries in your database" comes >> from traditional setups where the binary data would live in the database, >> would get marshalled over the client protocol to the application server >> from where it is handed to the web server for delivery, passing the border >> of kernel-land to user-land a few times. That *is* inefficient and >> discouraged. CouchDB streams binary data to the HTTP socket with just two >> such context switches and goes straight to HTTP where you can stream it >> efficiently to a client, a proxy or a CDN for delivery. >> >> But yes, this question should be moved to user@. >> >> Best, >> Jan >> -- >> >> >>> >>> Retrieve the song's path using its name or id and then do whatever you >> have >>> to do.. >>> This is just one way of doing it. >>> I'm sure many of the developers here have a better solution. >>> >>> >>> On Wed, May 22, 2013 at 1:53 PM, Rana Bunnni wrote: >>> >>>> >>>> >>>> Hi all, >>>> I would like to create a database that can store music. >>>> How can I save music in couchDB ? >>>> and how can i retrieve a specific music from the database ? >>>> >>>> Greetings >>>> /RB >>> >>> >>> >>> >>> -- >>> Regards- >>> Pavan >> > > > > -- > Regards- > Pavan