Author Topic: Number of SQL Queries?  (Read 639 times)

Offline Qwerty

  • Level 12
  • *
  • Posts: 90
  • Reputation: +0/-0
    • View Profile
Number of SQL Queries?
« on: December 01, 2008, 01:17:39 AM »
How many times does your game run a SQL query on your database?

Mines running about 30, though I'm looking to narrow it down a bit...
- "I sentance you to life"
- "You moron I'm already alive"

Offline raestlyn

  • Level 29
  • **
  • Posts: 464
  • Reputation: +9/-5
    • View Profile
Re: Number of SQL Queries?
« Reply #1 on: December 01, 2008, 04:22:52 AM »
only 30?
Look at even this pages stats:
Page created in 0.07 seconds with 13 queries.

So your game is running very low number of them. My battle script does about 40 if every condition is met..


I can send you pics of my cocks if you want reference.


Offline Chris

  • Game Owner
  • Level 35
  • *
  • Posts: 2,217
  • Reputation: +28/-1
    • View Profile
Re: Number of SQL Queries?
« Reply #2 on: December 01, 2008, 05:44:36 AM »
2-15 (average is probably 4-7, 15 is on unoptimised low priority communication pages, battle script 11)


Offline codestryke

  • Administrator
  • Level 33
  • *****
  • Posts: 589
  • Reputation: +22/-0
    • View Profile
    • eXtremeCast Games
Re: Number of SQL Queries?
« Reply #3 on: December 02, 2008, 12:17:49 AM »
Most pages under 5, battle scripts usually double that depending on the game...

On our game Cypher though that runs a tick every 10 minutes it can sometimes hit up to 300-500  depending on the number of players signed up for missions. Kinda cool to hook up to the mySQL server with there administrator tool and watch the live graphic on the number of queries per second the server is running... That tick hits and WHAM it spikes to the top of the graph.


Creating online addictions, one game at a time:

Offline Qwerty

  • Level 12
  • *
  • Posts: 90
  • Reputation: +0/-0
    • View Profile
Re: Number of SQL Queries?
« Reply #4 on: December 02, 2008, 03:01:27 AM »
I haven't added a battle script and it isn't tick based. Most of the database queries are for user levels and data, though I made a server side cache so now it rarely goes above 10.
- "I sentance you to life"
- "You moron I'm already alive"

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal