Skip site navigation (1) Skip section navigation (2)

Re: What is the best way to storage music files in Postgresql

From: Rich <rhdyes(at)gmail(dot)com>
To: "Craig Ringer" <craig(at)postnewspapers(dot)com(dot)au>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: What is the best way to storage music files in Postgresql
Date: 2008-03-17 18:40:05
Message-ID: 8fb205ea0803171140q3167aca9j190e192a40ef911d@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-performance
On Sun, Mar 16, 2008 at 2:25 AM, Craig Ringer
<craig(at)postnewspapers(dot)com(dot)au> wrote:
> Rich wrote:
>  > I am going to embarkon building a music library using apache,
>  > postgresql and php.  What is the best way to store the music files?
>
>  Your options are either to use a BLOB within the database or to store
>  paths to normal files in the file system in the database. I suspect
>  using normal files will make backup and management a great deal easier
>  than using in-database BLOBs, so personally I'd do it that way.
>
>  Storing the audio files in the database does make it easier to keep the
>  database and file system backups in sync, but I'm not really sure that's
>  worth the costs.
What costs are to speaking of?
>
>  I'm sure that what you're doing has been done many times before, though,
>  so even if you're not going to use one of the existing options you might
>  at least  want to have a look at how they work.
>
>
>  > Which file type should I use?
>
>  I'm not sure I understand this question. Are you asking which audio
>  compression codec and audio container file type (like "mp3", "aac", etc)
>   you should use? If so, this is really not the right place to ask that.
>
>  Do you mean which file /system/ ?
>
>  --
>  Craig Ringer
>
>

In response to

pgsql-performance by date

Next:From: JustinDate: 2008-03-17 18:50:36
Subject: Re: Benchmark: Dell/Perc 6, 8 disk RAID 10
Previous:From: RichDate: 2008-03-17 18:39:32
Subject: Re: What is the best way to storage music files in Postgresql

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group