Ticket #174 (closed enhancement: invalid)

Opened 15 months ago

Last modified 4 weeks ago

Dust off and clean up MySQL support

Reported by: jdolan Owned by: wickedshell
Priority: minor Component: quake2world
Keywords: mysql Cc:

Description

The game module has MySQL spaghetti code throughout it. Let's try to consolidate it, and make sure that it works and is documented correctly. We should also make sure we provide a valid schema / ddl to seed the database.

Change History

Changed 14 months ago by wickedshell

Is there an old schema sitting somewhere that I can use as a starting point, or should I be figuring it out purely from the code?

Changed 14 months ago by maci

IIRC, the schema back then was not quite optimal either. I think it makes more sense to design a proper schema without redundancy etc and then change the code.

Changed 14 months ago by jdolan

The base schema was ..eh; what was missing was some temporary cron-rebuilt tables for providing fast aggregate views (heh, if only proper *views* didn't perform so poorly in MySQL). Also, I'm not crazy about the fact that I didn't use numeric pk's for the player table. That should probably be rethought.

The old schema and PHP scripts are kicking around in stats/trunk. Note that I wrote all of that like 10 years ago for Quetoo; it is likely very, very bad.

Changed 13 months ago by jdolan

  • priority changed from major to minor

Changed 4 weeks ago by maci

  • status changed from new to closed
  • resolution set to invalid
Note: See TracTickets for help on using tickets.