Forums » General

estimate size of the asteroids database

12»
Nov 29, 2004 ananzi link
here is a fun game. estimate the size of the asteroids database.

my estimate: 9 megabytes.
Nov 29, 2004 Blue_Corsair link
9.1 megabytes
Nov 29, 2004 roguelazer link
One dollar, Bob.
Nov 29, 2004 doubled link
6.1 MB
Nov 29, 2004 a1k0n link
hmm. too low so far. there are over 250000 asteroids in the database, and the information is stored rather generically (it's not just for asteroids)
Nov 29, 2004 tramshed link
im guessin 30 or 40mb
Nov 30, 2004 Celkan link
nah.... 50-70 mb. maybe even 100mb.
Nov 30, 2004 Renegade ++RIP++ link
1 gig :D

I dont think that 4 mb for every asteroid can be considered to be much, or am I wrong... ?
Nov 30, 2004 Viper2560 link
417 MB just a wild guess
Nov 30, 2004 The Noid link
250000 'roids...
per astroid, lets see...
system - unsigned tinyint (1 byte)
sector - unsigned tinyint (1 byte)
x, y, z - integer (3x4 bytes = 12 bytes)
temperature - smallint (2 bytes)

I doubd they made more then 65000 different 'roid shapes
shape - smallint (2 bytes)

composition... I'd make a separate table of predefined compositions, size of that one can be neglected.
composition - smallint (2 bytes)

that's 20 bytes per roid, nice fixed rowsize, fast on the database.
250k roids makes 5Mb... but a1k0n said it's bigger ten 100, so they didn't optimise that hard :D

Even if we make the coords bigints (3x8bytes) it would only be 8MB and if we add a rotation speed in the same precision it would only make 14MB. Add indices on the location, maybe 20MB.

I didn't count geometry data for those 65000 different roids, but that can't be more then the game download of 110MB :D

So they're storing it rather differently, and as it's not just for astroids, it all depends on what else they put in those tables...
Nov 30, 2004 roguelazer link
System and Sector are the same thing. Sol II A1 for example is known to the system as sector 0001. Right up to sector 7680.
Nov 30, 2004 yodaofborg link
112mb. <- its a guessing game right?
Nov 30, 2004 a1k0n link
I never said it was more than 100 megs. It isn't.
Nov 30, 2004 doubled link
In the case of a generic database lets multiply my guess by 10

61MB
Nov 30, 2004 Wubby link
1 dollor Bob. (wait for laughter...)

I guess 58meg.
Nov 30, 2004 a1k0n link
Now that two people have made the same joke, I finally get it.

Come on down!
Nov 30, 2004 Temporalis link
would guess about 24 meg :)

have fun
Nov 30, 2004 ananzi link
"temperature - smallint (2 bytes)"

this was proven wrong last night.

it also crashed the server. when is this horrible bug going to be fixed?
Dec 01, 2004 The Noid link
Right, in the reply screen the posts are sorted in reverse order... I thought your reply came after Celkans post :D
Dec 01, 2004 Beolach link
About (but not exactly) 31.4159265 MiB.

I don't get the One Dollar, Bob joke, even after googleing...