You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by Rana Bunnni <ra...@yahoo.se> on 2013/05/22 10:23:38 UTC
music database
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
Re: music database
Posted by Dirkjan Ochtman <di...@ochtman.nl>.
On Wed, May 22, 2013 at 10:23 AM, Rana Bunnni <ra...@yahoo.se> wrote:
> 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 ?
This mailing list is about developing CouchDB itself. You should ask
your question on the user@couchdb.apache.org list (added on this
mail).
Cheers,
Dirkjan
Re: music database
Posted by Jan Lehnardt <ja...@apache.org>.
On May 22, 2013, at 11:20 , Pavan Sudheendra <pa...@gmail.com> wrote:
> Sorry Jan. I was wrong.
Not to worry! :)
Jan
--
>
>
> On Wed, May 22, 2013 at 2:43 PM, Jan Lehnardt <ja...@apache.org> wrote:
>
>>
>>
>> On 22.05.2013, at 10:52, Pavan Sudheendra <pa...@gmail.com> 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 <ra...@yahoo.se> 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
Re: music database
Posted by Pavan Sudheendra <pa...@gmail.com>.
Sorry Jan. I was wrong.
On Wed, May 22, 2013 at 2:43 PM, Jan Lehnardt <ja...@apache.org> wrote:
>
>
> On 22.05.2013, at 10:52, Pavan Sudheendra <pa...@gmail.com> 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 <ra...@yahoo.se> 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
Re: music database
Posted by Jan Lehnardt <ja...@apache.org>.
On 22.05.2013, at 10:52, Pavan Sudheendra <pa...@gmail.com> 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 <ra...@yahoo.se> 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
Re: music database
Posted by Pavan Sudheendra <pa...@gmail.com>.
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.
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 <ra...@yahoo.se> 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
Re: music database
Posted by Dirkjan Ochtman <di...@ochtman.nl>.
On Wed, May 22, 2013 at 10:23 AM, Rana Bunnni <ra...@yahoo.se> wrote:
> 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 ?
This mailing list is about developing CouchDB itself. You should ask
your question on the user@couchdb.apache.org list (added on this
mail).
Cheers,
Dirkjan