Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   SQLite performance impact (https://forums.graalonline.com/forums/showthread.php?t=134262516)

Crow 03-24-2011 06:19 PM

SQLite performance impact
 
I've gotten started doing some stuff with SQLite, and now I'm wondering what kind of impact it has on the performance of the server. I got some data stored in the database and I query quite often to get a hold of it when I need it. Would it be a better idea to "cache" the data somewhere or can I keep on doing this?

salesman 03-24-2011 06:31 PM

Some good information here.

Crow 03-24-2011 07:11 PM

Quote:

Originally Posted by salesman (Post 1638607)
Some good information here.

Thanks! That helped :)

fowlplay4 03-24-2011 07:25 PM

I prefer to cache mostly static data (weapon stats).

I.e: weapon.arc

PHP Code:

name=whatever weapon
speed
=fast
power
=high 

WeaponDB.weapon.loadvars("path/to/arcs/weapon.arc");

It's a lot easier to access down the run, and you won't have to update a table if you need a new variable.

But for player and item storage, SQL all the way.


All times are GMT +2. The time now is 06:49 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.