Article View: news.software.readers
Article #267560Post DB
From: Stefan Ram
Date: Mon, 09 Sep 2024 10:44
Date: Mon, 09 Sep 2024 10:44
62 lines
2820 bytes
2820 bytes
I'm not 100% sure I'm barking up the right tree (newsgroup) here, but whatever. So, yesterday I was chewing the fat about how to whip up a database for posts retrieved from newsservers. I'm picturing some program that pulls newsgroups from newsservers and dumps them into a database. In my mind's eye, a post looks something like this, give or take: Path: A Message-ID: B Body: C . But if you snag the same post from a different server, it might look like this: Message-ID: B Path: D Body: C . At first blush, you'd end up with the same body stored multiple times in the database. Talk about a waste of space! To trim the fat, we could rejigger these posts so all the variable stuff is up front: Path: A Message-ID: B Body: C and Path: D Message-ID: B Body: C Now the tail end of both posts is identical, so we can toss that in a separate table at position 0. The posts themselves would then just contain the different parts and a pointer to the shared bit that's only stored once: Path: A Rest: 0 Path: D Rest: 0 0: Message-ID: B Body: C . This way, you could store the same post from multiple newsservers without eating up your hard drive space like it's In-N-Out fries.
Technical Details
Message-ID:
<database-20240909114248@ram.dialup.fu-berlin.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!apf8.newsdeef.eu!nnrp.usenet.blueworldhosting.com!!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <database-20240909114248@ram.dialup.fu-berlin.de>
Subject: Post DB
Date: Mon, 09 Sep 2024 10:44:36 +0000
From: ram@zedat.fu-berlin.de (Stefan Ram)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!apf8.newsdeef.eu!nnrp.usenet.blueworldhosting.com!!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!not-for-mail
Newsgroups: news.software.readers
Organization: Stefan Ram
Lines: 63
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de b02EqmO53gQ7jbmmMP85UgkDHjtKodMUvyU6kuS12ifm6t
Cancel-Lock: sha1:BiPE/2gBrIau46RUtTtIhXqrOSQ= sha256:ciJQo1bvZST9PNWeu73aWJv3mxLLHhWyjI7ehRRUSH4=
X-Copyright: (C) Copyright 2024 Stefan Ram. All rights reserved.
Distribution through any means other than regular usenet
channels is forbidden. It is forbidden to publish this
article in the Web, to change URIs of this article into links,
and to transfer the body without this notice, but quotations
of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
services to mirror the article in the web. But the article may
be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: en-US