Posts: 417
Threads: 40
Joined: Oct 2013
Reputation:
0
Hey all,
I got one question. The question - Is there a difference betwen MySQL and SQLite's syntaxes?
Posts: 2,593
Threads: 38
Joined: Aug 2007
Reputation:
0
In the context of SA-MP, other than being coded differently, MySQL requires a server with a database. SQLite is locally stored and doesn't use any external server.
I haven't tested it, but I believe MySQL is faster for fetching information (depending on size of the database), especially if the server is the same as your SA-MP server. But, SQLite is less vulnerable to outside attacks.
I prefer to use SQLite because it doesn't require a server database.
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
If everything with mysql have been set up correctly, you're not going to have any issues with it and I honestly find it a bit bad idea to use both systems at the same script.
MySQL by BlueG, the latest versions (threaded queries and ORM) are much faster than SQLite. Yes, SQLite is reliable and no need any extra but I'd still prefer not to use it anymore. Plus, INSERT queries are also slow and in order for the SQLite to gain some speed (in general), you'd have to set synchronous to off and there are cases that the database might be corrupted (and if you don't take any backups of it often..).
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
I understood why you want to make it like this but saving in two systems at the same time might be a problem (if in another thread, then okay).
Also about your previous question as both use SQL is the same. I'm only aware of the one you mentioned that the keyword for auto increment in SQLite is AUTOINCREMENT.
PS: Your English is good, no worries.
Posts: 417
Threads: 40
Joined: Oct 2013
Reputation:
0
If the gamemode has a save system with MySQL, can I use a filterscript for SQLite save system?