Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2004-03

using big files with high performance

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Christian Müllerke

Hi!

Sorry for bad english, and, maybe this is a beginner question:

I'am trying to write my own small NNTP(Usenet)-daemon (experimental - just want to increase my knowledge).

What whould be the best method for storing articles in files divided by group (one group, one file)? I want a good performance, ram usage should be small.

Is BerkeleyDB a solution? Or writing file-access with streams and a index-file? Next problem would be the locking of files (can BDB handle this for me?).

I'am using Linux and FreeBSD. Never programmed software for big files with locking before.

thanks in advance, Christian

Christian Muellerke, , http://www.cmuellerke.de Seite zum Webauthoring: http://www.mywebresource.de
Unknown author
to Christian Müllerke
Christian M?llerke wrote 16 lines
Hi! Sorry for bad english, and, maybe this is a beginner question: I'am trying to write my own small NNTP(Usenet)-daemon (experimental - just want to increase my knowledge). What whould be the best method for storing articles in files divided by group (one group, one file)? I want a good performance, ram usage should be small. Is BerkeleyDB a solution? Or writing file-access with streams and a index-file? Next problem would be the locking of files (can BDB handle this for me?). I'am using Linux and FreeBSD. Never programmed software for big files with locking before.

Berkely DB (or GNU DB) will take care of this for you. I'm not sure about performance using big files, but I'm assuming this will not really be a problem.

Michael.