MySQL Scripting
#1

Could someone give me a couple of functions to save and load data in mysql and where to put them.
Reply
#2

This is a very broad question... please read MySQL documentation (on it's website and on the main plugin thread) and read example scripts to understand how it works.
Reply
#3

Quote:
Originally Posted by admantis
Посмотреть сообщение
This is a very broad question... please read MySQL documentation (on it's website and on the main plugin thread) and read example scripts to understand how it works.
I have but I don't know which methods work better.
Reply
#4

Download one of the various base-MySQL scripts available.
Reply
#5

Quote:
Originally Posted by iFarrow
Посмотреть сообщение
I have but I don't know which methods work better.
Generally the "faster" method is using cache, this is available in every MySQL plugin apart from StrickenKid's and allows you to create threaded queries. PAWN is single-threaded, so every function is on a "queue" and one thing gets called at a time. If you have threaded queries, they will be executed in a separate background. This is why they are faster and more efficient.

AndreT wrote a very good tutorial explaining cache and threaded queries too, read it and try to puzzle it out!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)