From: | Piotr Czekalski <pczekalski(at)techbaza(dot)pl> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Re: 500KB PDF files for postgresql8.3, which is the most efficient way? |
Date: | 2011-05-28 07:58:29 |
Message-ID: | 4DE0AB25.5020109@techbaza.pl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-sql |
Hello Emi Lu,
The detailed discussion was just about two weeks ago on the plpgsql
list, worth of glance.
Actually it is quite difficult to say which one is better in your case
as it depends on utility (rapid file hostin or just storing but
transaction safety is important, etc.).
Generally it seems that your requirements are rather small.
So briefly, my point of view on it:
(1) Pro:
- easy to implement,
- more efficient when storing and retrieving files than other solutions
- easy hosting over dedicated file server (with caching i.e.)
- DB size is small, files are separated - important on shared hosting
where DB size limit is usually much smaller than file storage limit.
Cons:
- nontransactional - actually you may try to create double commit but it
still may fail as it is not "atomic" operation, on two (FS and DB)
- more complicated to backup and restore.
(2) no opinion on mine
(3)
Pro:
- consistent,
- smart solution ;-)
- easy to backup / restore
- transactional
Cons:
- harder to implement storing and retrieving files
- may be non efficient (usually requires app side caching)
- DB size is bigger
Regards,
P.
--
--------------------------------------------------------------
"TECHBAZA.PL" Sp. z o.o.
Technologie WEB, eDB& eCommerce
tel. (+4832) 7186081
fax. (+4832) 7003289
email: biuro(at)techbaza(dot)pl
web: http://www.techbaza.pl
web: partner.techbaza.pl
web: ekspert.techbaza.pl
From | Date | Subject | |
---|---|---|---|
Next Message | Carl von Clausewitz | 2011-05-28 08:42:50 | Re: Shared Buffer Size |
Previous Message | preetika tyagi | 2011-05-27 21:33:33 | Re: Shared Buffer Size |
From | Date | Subject | |
---|---|---|---|
Next Message | Surfing | 2011-05-28 14:16:05 | Function to total reset a schema |
Previous Message | Tarlika Elisabeth Schmitz | 2011-05-27 19:52:42 | Re: Order of evaluation in triggers for checks on inherited table partitions |