The application discloses a kind of service object dynamic configuration method, it is related to
storage resource management technical field, including steps: by the characteristic parameters such as data scale, attribute number, change frequency, query frequency and
response time requirement of service object acquisition, calculate configuration flexibility index CFI and performance decay index PDM in
application server memory, according to the comparison of preset threshold with the calculation result
Adaptive selection semantic storage mode SSM or structured storage mode CSM;When selecting SSM, adopt two-stage batch query to obtain entity ID after batch query attribute value, when selecting CSM, according to
metadata dynamically generated and executed table structure change statement, simultaneously, corresponding entity class
bytecode is generated in memory and is loaded, if execution fails, then trigger
rollback operation.The application can adaptively select optimal storage mode, realizes the non-stop change of service
object structure, balances the flexibility and high performance demand of
system.