-
Notifications
You must be signed in to change notification settings - Fork 3
Reduce database size #152
Comments
Just FTR: I've estimated (just by datatype, ignoring all overhead) the fixed row size to 188 bytes. I've averaged the string sizes of the last 1000 entries of
I know it doesn't help much, just wanted to drop the data somewhere :-) We could reduce the row size. How exactly could we archive away old jobs? If we just put |
I do not think, that reducing the row sizes here and there will help with the issues on the long run. What also becomes immediately apparent, when converting the Aria tables to MyISAM, is the huge index size of around 3GB for My proposal would be to split From what I could oversee, it would only affect certain summaries/statistics, and here the accustomed functionality could be achieved with union queries. To make it a bit more concrete:
This would make
A table partitioning could be also a way to achieve this, would also make the queries look a bit more elegant, but would make the database/queries eventually less portable, and indeed keep unneeded index data on the bulk. So I would prefer the simpler way using unions. |
FTR: We discovered that the production mysql-server instance is started with an explicit |
As an experiment, I've restarted the database without the tuning parameters. Let's see, if we run into performance or other problems, which I don't expect. vmsize now 1.9 GB.
|
@thomas in #150
But honestly, as long as the actual database design yields to something
that only runs in 30+ GB RAM, this discussion is way pointless. Maybe
try to look at the elephant in the room?
Three tables in mxq, a biggy, two trivials, maybe think of how to move
the finished jobs into a kind of bag-table, and have the active ones
acessible? So, I propose adding an other table, plus some logic. This
will indeed not yield to 'realtime' performance, but would make the
whole thing more responsive and less memory hungry **).
Thomas
**) IMHO SQL-databases are intended to be run under constrained/limited
conditions (Well, indeed there is the Hans/Günther way, ... grinsel)
The text was updated successfully, but these errors were encountered: