Events storage procedure
Added the necessary database code to convert the contents of event queues into actual event records. The changes include: * a new table, events.pending_events, which is automatically filled by a trigger when events are inserted into queue tables, * the game.events.batchSize constant which defines the maximal amount of events to process in a single transaction, * the events.eq_process() stored procedure, which processes the events. In addition, the "hstore" extension was added as it is the easiest way to convert events from the queues' table model to the store's meta-model.
This commit is contained in:
parent
dc9ef2292d
commit
3a0f5bbb78
5 changed files with 248 additions and 4 deletions
legacyworlds-server-beans-system/src/main/java/com/deepclone/lw/beans/sys
|
@ -32,6 +32,8 @@ public class ConstantsRegistrarBean
|
|||
// Misc. game-related values
|
||||
cDesc = "Game updates - batch size.";
|
||||
defs.add( new ConstantDefinition( "game.batchSize" , "Game (misc)" , cDesc , 20.0 , 1.0 , true ) );
|
||||
cDesc = "Event processing - batch size.";
|
||||
defs.add( new ConstantDefinition( "game.events.batchSize" , "Game (misc)" , cDesc , 100.0 , 1.0 , true ) );
|
||||
cDesc = "Population growth factor.";
|
||||
defs.add( new ConstantDefinition( "game.growthFactor" , "Game (misc)" , cDesc , 50.0 , 1.0 , true ) );
|
||||
cDesc = "Increase to the population growth factor caused by reanimation centres.";
|
||||
|
|
Reference in a new issue