Author Topic: Lobby Player API: help me!  (Read 7249 times)

0 Members and 4 Guests are viewing this topic.

Offline ramirez

  • Retired Soldat Developer
  • Camper
  • ******
  • Posts: 394
    • Soldat Central
Re: Lobby Player API: help me!
« Reply #20 on: May 31, 2007, 01:38:30 pm »
Well, it might not be necessary, I doubt the speed difference is that critical with the amount of servers that the lobby holds. Using two fields isn't necessarily inefficient. For example if you make a numeric IP field (INT UNSIGNED) and a port field (SMALLINT UNSIGNED) and create an unique index on those two, it should be fairly efficient (and that way you don't need to waste the 2 bytes by creating a 8 byte column, not that it's a lot of waste :P). Even if the IP is a string, I'm fairly sure it'd scope just fine for the lobby.

Offline DePhille

  • Flagrunner
  • ****
  • Posts: 623
  • SoldatPage Webmaster
    • SoldatPage
Re: Lobby Player API: help me!
« Reply #21 on: May 31, 2007, 03:48:23 pm »
Thanks for lighting that up to me, chrisgbk! Indeed, seems like I've missed the usage of the locking.
I think we're pretty close to a solution here, but I cannot really follow anymore since I rarely get that deep into building SQL statements as proved with my mishap about the locking. I'd have to look up alot of information rather than using experience.

However, keep in mind this isn't google or something. I think it's better to have an easy code rather than winning 0.001 second with it despite my strive for performance. Anyway, that's Brick's choice ;).

Grtz, DePhille
This signature was broken. Feel free to fix it.