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

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: What is the best way to storage music files in Postgresql
Дата
Msg-id 47DCBD63.9050109@postnewspapers.com.au
обсуждение исходный текст
Ответ на What is the best way to storage music files in Postgresql  (Rich <rhdyes@gmail.com>)
Ответы Re: What is the best way to storage music files in Postgresql  ("Peter Koczan" <pjkoczan@gmail.com>)
Re: What is the best way to storage music files in Postgresql  (Rich <rhdyes@gmail.com>)
Список pgsql-performance
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.

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


В списке pgsql-performance по дате отправления:

Предыдущее
От: Craig James
Дата:
Сообщение: Re: What is the best way to storage music files in Postgresql
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Benchmark: Dell/Perc 6, 8 disk RAID 10