[Plugin] [WIP] NHibernate plugin for BlueG Mysql
#5

Quote:
Originally Posted by maddinat0r
View Post
There's a tutorial about the ORM system here and here are all the functions listed in the include.
I'm not quite sure if lazy initialization is possible, you'd have to know when a variable is used.
But I'm also not sure if lazy init is a good approach here. We have OnGameModeInit to initialize all variables/systems and we also don't really care if a gamemode is taking long to load. In addition to that, lazy init could cause evil lags while players are ingame, and that's really bad.
IMO it's better if OnGameModeInit takes one minute to initialize all systems than several initializations (and thus several possible lags) during gaming on the server.
My plugin will have more options than the ORM of BlueG's plugin (ex: relations between tables - hasmany, reference, etc..., it not based on column names - it based on the enum, some operations on the queries like where, single, first ans so on).

About the lazy loading, I think that it worth the try.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)