Re: Large Objects

From: Tim Kientzle <kientzle(at)acm(dot)org>
To: PostgreSQL general mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: Large Objects
Date: 2000-09-20 22:45:39
Message-ID: 39C93E13.E65D3402@acm.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Steven Lacroix asks:
> ... what kind of performance hits do BLOBS have on a database ...
> Note that it would be for web database project.

I haven't tried this with PostgreSQL, but I ran some experiments
to compare the speed of access for large numbers of BLOBs stored
in a single MySQL table and in a directory in the local filesystem.

For more than 10,000 BLOBs, the database was a clear winner.
That is, it took less time to locate and read an 8k-16k BLOB
from the MySQL database than from the local disk. For smaller
numbers of BLOBs, the filesystem was faster. This is pretty
much what you should expect: reading a file through a system
call should be faster than doing a network operation to request
a BLOB. Conversely, Unix filesystems store directories as unsorted
lists, which are a lot slower to search than the database's
structured indexes.

I'm currently working on a web publishing system that stores
all content as BLOBs in a back-end MySQL database; performance
is very good so far.

I'll be giving a talk about this at BSDCon in Monterey next month
with more details...

- Tim Kientzle

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Edward Q. Bridges 2000-09-20 23:07:38 Re: Database Features Questions,
Previous Message Vince Vielhaber 2000-09-20 22:18:19 Re: copy table from one database to another