Article View: news.software.nntp
Article #79252Re: INND and MySQL
From: Russ Allbery
Date: Sun, 03 Aug 2008 19:57
Date: Sun, 03 Aug 2008 19:57
26 lines
2236 bytes
2236 bytes
"Man-wai Chang ToDie (33.6k)" <toylet.toylet@gmail.com> writes:
> Is there a reason why INND doesn't have support for modern database
> engines, say MySQL?
If you're asking why innd doesn't store article, overview, or history data
in MySQL, it's because MySQL is dog-slow. No, really. You just think
it's fast because you're not actually stressing the database as much as
INN would and because you're comparing it against even slower engines like
Oracle. The overhead of supporting SQL and ACID semantics slows you down
a *lot*.
See the similar arguments that pop up from time to time on the OpenLDAP
list. People keep thinking they should put their OpenLDAP database in
MySQL because "MySQL is fast" and no one uses this weird BerkeleyDB thing,
and then can't figure out why their LDAP server just crawls.
INN by default uses custom on-disk data structures designed specifically
for the access patterns that INN has. They could definitely be improved,
but probably not by moving to a more generic database.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<871w153m8d.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mailReferences:
<4893df58$1@127.0.0.1>Show Full Headers
Complete Article Headers
Message-ID: <871w153m8d.fsf@windlord.stanford.edu> Subject: Re: INND and MySQL Date: Sun, 03 Aug 2008 12:57:38 -0700 From: Russ Allbery <rra@stanford.edu> References: <4893df58$1@127.0.0.1> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 26 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.stanford.edu 1217793458 3906 171.64.19.147 (3 Aug 2008 19:57:38 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:9S58f+VUeixK7FvfHmxDt4cfYVE=