Article View: news.software.nntp
Article #84249Re: Is getting article by Message ID inherently slower than by Article Number?
From: Julien ÉLIE
Date: Tue, 09 Aug 2011 17:00
Date: Tue, 09 Aug 2011 17:00
26 lines
2800 bytes
2800 bytes
Hi Dieter, > By message ID: Most news servers maintain a list of message IDs of all > [recent] articles on the server which is group independent. As this is > generally an UNSORTED list, searching takes order(n * log(n)) time on > average to find the entry with the article storage pointer. [Do I have > that correct, or is it order(n^2)?] As for INN, the history file uses the "dbz" format -- currently v6 :-) We have "history.dir", "history.hash" and "history.index" files (or "history.pag" instead of hash/index if tagged hashes are used). So the search is not really done in an unsorted list. That is the reason of daily expiry process: the history file is rebuilt. Please have a look at the dbz(3) documentation for more information. Searching is usually fast for "old" messages. I haven't look at the algorithm involved but I bet it is o(log(n)) or maybe o(1)? INN also caches recent message-IDs (configuration in inn.conf) so it is also fast, with no disk access into the bargain, for "new" messages. -- Julien ÉLIE « C'est souvent la femme qui nous inspire les grandes choses qu'elles nous empêchent d'accomplir. » (Alexandre Dumas Fils)
Technical Details
Message-ID:
<j1rp3r$9fk$1@news.trigofacile.com>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!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-552-1-67-40.w83-200.abo.wanadoo.fr!not-for-mailReferences:
<97vs37plvqd467e3k8ipincoo6qm5a29kc@4ax.com> <he0t37l6cali01lr8rternu2js5hcobnhq@4ax.com> <4m4t37tcfcs9d57e60ctb8gubh0fb42sa7@4ax.com> <6s5147tefb7t0r5pmmnvqoa3j74qh15ukk@4ax.com> <j1qkob$jjd$1@snarked.org>Show Full Headers
Complete Article Headers
Message-ID: <j1rp3r$9fk$1@news.trigofacile.com> Subject: Re: Is getting article by Message ID inherently slower than by Article Number? Date: Tue, 09 Aug 2011 19:00:42 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <97vs37plvqd467e3k8ipincoo6qm5a29kc@4ax.com> <he0t37l6cali01lr8rternu2js5hcobnhq@4ax.com> <4m4t37tcfcs9d57e60ctb8gubh0fb42sa7@4ax.com> <6s5147tefb7t0r5pmmnvqoa3j74qh15ukk@4ax.com> <j1qkob$jjd$1@snarked.org> 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!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-552-1-67-40.w83-200.abo.wanadoo.fr!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 9 Aug 2011 17:00:43 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-host="aaubervilliers-552-1-67-40.w83-200.abo.wanadoo.fr:83.200.66.40"; logging-data="9716"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7; fr; In-Reply-To: <j1qkob$jjd$1@snarked.org> Lines: 25 X-Original-Bytes: 2631