10.03.2019, 15:53
Hello!
I want to ask these questions about MySQL:
1) Which engine is the best for a SAMP server - InnoDB or MyISAM? (let's says that the server will work with a lot of data)
2) I saw that option POOL_SIZE in MySQL plugin declares the max queries which can be executed at once with mysql_pquery. The default value is 2, but if this value get increased will this decrease and overload the perfomance for the MySQL server?
3) If we declare a string in Pawn with contains 4 characters we need to declare that string with size [4 + 1] (+1 for the null terminator). But if we save the same string in database, does it need our field to be VARCHAR(4 + 1) or VARCHAR(4) is enough? I ask this question, because in one MySQL tutorial here I saw that the user uses CHAR(65) for password hash provided that the hash key is only 64 characters and I think we don't need +1 size since we only save those 64 characters in the database.
I want to ask these questions about MySQL:
1) Which engine is the best for a SAMP server - InnoDB or MyISAM? (let's says that the server will work with a lot of data)
2) I saw that option POOL_SIZE in MySQL plugin declares the max queries which can be executed at once with mysql_pquery. The default value is 2, but if this value get increased will this decrease and overload the perfomance for the MySQL server?
3) If we declare a string in Pawn with contains 4 characters we need to declare that string with size [4 + 1] (+1 for the null terminator). But if we save the same string in database, does it need our field to be VARCHAR(4 + 1) or VARCHAR(4) is enough? I ask this question, because in one MySQL tutorial here I saw that the user uses CHAR(65) for password hash provided that the hash key is only 64 characters and I think we don't need +1 size since we only save those 64 characters in the database.