Posts: 845
Threads: 3
Joined: Jun 2010
Quote:
Originally Posted by Aliassassin123456
Thanks for answer so there isn't any reason to replace cache's with ORM
|
Sure there is. ORM-code is way easier to maintain. With the normal cache-stuff, you'd have to edit the code in several places in your script if you wan't to add a new variable and you also would need to edit some queries. With the ORM-system, all you need to do is to add one line.
Posts: 591
Threads: 70
Joined: Jun 2009
Reputation:
0
I can't get how it gets the player's data, so can I have an example how to save the player health and IP and load the health after he logs.
Posts: 845
Threads: 3
Joined: Jun 2010
Quote:
Originally Posted by x96664
I can't get how it gets the player's data, so can I have an example how to save the player health and IP and load the health after he logs.
|
There is already such an example in this tutorial here, what is the problem with that example? You better read the tutorial again carefuller.
Posts: 845
Threads: 3
Joined: Jun 2010
Quote:
Originally Posted by fr1run
Do I need to make SQL Inject protection for ORM?
|
Quote:
Originally Posted by S4t3K
Of course you do !
|
Wrong. The ORM system automatically escapes every string variable.
Posts: 251
Threads: 2
Joined: Jun 2011
Reputation:
0
I'm loving the ORM support! Development has become really fast.
Posts: 48
Threads: 2
Joined: Apr 2013
Reputation:
0
Hello! I'd like to use ORM, but I have few concerns.
1. How to handle fields like DATETIME?
2. Does orm_destroy also reset ORM associated variables (like orm_delete does) or do I have to do it manually?
Posts: 845
Threads: 3
Joined: Jun 2010
Quote:
Originally Posted by Pupak
Hello! I'd like to use ORM, but I have few concerns.
1. How to handle fields like DATETIME?
2. Does orm_destroy also reset ORM associated variables (like orm_delete does) or do I have to do it manually?
|
1. Just like you would handle them with the standard cache system: as a string.
2. No, it doesn't reset the variables like orm_delete, but that would be a nice addition in R40.
Posts: 759
Threads: 80
Joined: Oct 2012
Reputation:
0
This is an amazing tutorial and really help individuals like myself who have very few knowledge to learn how to use the Mysql plugin better. You're Tutorial Andre been following your Mysql Tutorials and all have helped in the passed
Posts: 320
Threads: 23
Joined: Aug 2012
Reputation:
0
Sorry for late bump.
I have question:
I'm using this system, and around 350 players server starts lagging, and somehow people are loosing stats, i mean their variables are not being saved(lost), while below 300 players everything works fine. Sometimes, password of players are not saved.
And i'm using only orm for account saving , for vehicles/stuff im using Y_INI.
So, my question is, if i transfer whole houses/vehicles/stuff to ORM, and remove Y_INI, what are the chances of loosing variables, or would lag be increased?
Also, what's faster, if i use tquery ( UPDATE variable etc ), or ORM system?