mldonkey-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mldonkey-users] MySQL


From: Jorge Nerin
Subject: Re: [Mldonkey-users] MySQL
Date: Wed, 22 Jan 2003 20:31:23 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130

Nikolai Prokoschenko wrote:

Hello!

Well, I know it's a -users list, but anyway.... This thread appeared on
http://mldonkey.berlios.de/ a couple of days ago:

http://mldonkey.berlios.de/modules.php?name=Forums&file=viewtopic&t=600

It deals with storing much of MLDonkey's persistent data in a MySQL
database (a patch was attached). I'd like to forward that discussion to
this list and also express my opinion.
Well, me too ;)

All in all, I think it's a good idea, for the following reasons:

1. I guess, most people already have an SQL-Server installed - I do :)
Even if not, I don't think that MySQL is _that_ big and resource-hungry.
People are already running MLDonkey, which is (at the moment) also very
"hungry", so nothing to complain about.
Currently in the server in wich it's running mldonkey not, but I will be glad, more on this later...

2. I'd like almost everything to be stored in a database - not only the
persistent data. Why? Quite easy: a database is optimized. Smart people
have programmed data-storage algorithms for years. Every text-file is a
nightmare compared to it - slow and ineffective. My ~/.mldonkey has about
1Mb of such text-files - database would be much faster.
I see figures of running mysql servers in various machines (some of my own, some not) of about 2-4 Mb of ram, admitely, mysql it's disk space hungry, but I suppose you could trade some mpg files for some mysql space.

3. All the cruft concerning reading and writing files can be discarded. If
the necessary data is just written to the database (on the fly, as soon as
it arrives), there is no need for much memory and no need to write
temporary files just in case mldonkey crashes.
It will be need to check for the existence of the mysql server at startup time and of the (unprobable) die of it during the use.

4. It will be much easier for GUIs to get the data. The telnet interface
could be slimmed up this way, stats won't have to be parsed out of telnet
responses (which is a pain in the neck, as I see it), discussions like
"'cs' vs. 'client_stats'" won't be necessary anymore.
So these are my points, apart from the GoodIdea(tm)-feeling. I hope we'll
have a nice discussion :)

Nikolai.

Thanks, it's really a good idea I was also considering, as I see mysql is much more optimized to deal with lot's of data and sorting finding this, if it really get's implmented we could store lot of historical information wich could be useful later.

For example, we could store wich one asked us about something just in case we need this thing to ask him; admitely very unlikely, but it opens a door of posibilities without using much ram.

mldonkey has used as much of 108M of my 80M system and 90M when my "server" only had 40M, it's a bit too much. I offer me to be an alpha tester ASAP ;-)

--
Jorge Nerin
<address@hidden>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]