[GameMode] RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more!
#9

SQLite is just a database system - similar to MySQL but it uses a local database file instead of a full blown MySQL server. When you get right down to it MySQL is faster when your talking about thousands upon thousands of queries to the database but for sa-mp there really is no good reason to go MySQL unless your looking for a few more statistics gathering procedures. SQLite is also technically faster and more efficient than using a standard filesystem but to be honest again the differences are extremely small and in most cases will not make any real noticable difference.

The best way to handle player data is simply to load the database into an array of player info to start and not bother calling any queries to the database unless anything changes. If it changes then you simply change the variable and then save it into the database for that player rather than saving everything at once as alot of systems will do. why write 40-50 variables for the one player when rewriting one is just as easy and way faster right? Thats the main reason i switched to sqlite. Now saying that the business system and the vehicle systems are still on a standard file base which you would think is a bit counter-intuitive when you take into account my preferences - Basically, I'm haveing trouble with the system in SQLite and it takes about 15 minutes for the system to setup for the first time due to the 2001 database insertions per system so 4002 overall which is massive - not to mention the fact the Queries are huge as I'm writing 30+ variables per vehicle to the database and about 18 variables per business. I could switch it over but to be honest the filesystem seems to be working just fine for now and no slower really.

Don't be me wrong though. If I find a good easy way of doing it it'll be done and I am still working on it.
Reply


Messages In This Thread
RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by CJay9209 - 20.04.2013, 22:16
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by Tidzii - 20.04.2013, 22:54
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by SANCHEZ17 - 20.04.2013, 23:32
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by Broker - 21.04.2013, 02:32
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by DJTunes - 21.04.2013, 05:12
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by Ighost - 21.04.2013, 07:36
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by CJay9209 - 22.04.2013, 05:50
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by God_Zilla - 22.04.2013, 06:55
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by CJay9209 - 22.04.2013, 14:16
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by Edvin - 22.04.2013, 14:47
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by Ibrahim.E - 22.04.2013, 14:48
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by Ighost - 22.04.2013, 18:34
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by CJay9209 - 24.04.2013, 18:52
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by iMTube™ - 24.04.2013, 19:15
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by Bleach79 - 25.04.2013, 12:19
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by verlaj - 25.04.2013, 16:31
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by CJay9209 - 26.04.2013, 16:34
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by michaelcosyns - 26.04.2013, 17:52
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by DaTa[X] - 26.04.2013, 21:17
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by CJay9209 - 02.05.2013, 02:00
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by Anosh4381 - 02.05.2013, 22:56
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by CJay9209 - 03.05.2013, 00:02
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by CJay9209 - 03.05.2013, 09:26
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by Eatos - 03.05.2013, 18:47
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by CJay9209 - 04.05.2013, 05:24
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by Bhxblu - 04.05.2013, 05:30
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by Anosh4381 - 06.05.2013, 22:01
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by DEADdem - 07.05.2013, 11:03
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by MahdiHammami - 04.11.2013, 13:00
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by ManGoe - 16.01.2014, 13:45
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by N0FeaR - 28.02.2018, 15:21
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by Mobtiesgangsa - 28.02.2018, 15:22
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by malekbaradei881 - 01.03.2018, 07:05
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by Sicitisss - 01.03.2018, 13:44
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by JohnFlores - 05.03.2018, 12:39
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by RatDimo - 11.10.2018, 01:59
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by Bhuhagal - 24.10.2018, 13:27
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by Bhuhagal - 24.10.2018, 13:35
Re: RPG World 5.0 - SQLite, ZCMD, Sscanf2, Real-time GM Editing, Banking, Vehicle Ownership, Businesses, Houses...more! - by PawnFox - 24.10.2018, 16:10

Forum Jump:


Users browsing this thread: 6 Guest(s)