Font Size: a A A

Design And Implementation Of MongoDB Database Object Relational Mapping Framework For Game Server

Posted on:2020-09-02Degree:MasterType:Thesis
Country:ChinaCandidate:C X ZhangFull Text:PDF
GTID:2428330620954137Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Relational databases are commonly used in the game industry,but a large amount of unstructured data generated by project requirements cannot be efficiently stored and processed in commonly used relational databases,so non-relational databases are born.While non-relational databases are not efficient at processing structured data,they are very efficient at handling unstructured data.At the same time,relational object mapping technology provides a bridge between objects and databases.The object-oriented data in the foreground and the relational data in the database are transformed through this bridge.In order to simplify the writing of repeated code and shorten the project development cycle,it is necessary to use object-relational mapping technology,but the open-source object-relational mapping package of MongoDB database under C++ development platform is still blank.Based on the C++ development platform for the online game server,this paper develops with high performance,high stability,high portability and high scalability.According to the logic requirements and key technical points in the development process of the game server,a MongoDB database object mapping package framework is designed to meet the research and development requirements,and some key technical modules in the framework are designed and implemented.The main research contents are as follows:(1)The development status of the current non-relational database and the application of the MongoDB database to the relational object mapping technology under the Java and C# development platform are analyzed,and the problem of the object-relational mapping encapsulation that is not available in the open source is found in the C++ development platform.(2)Functional demand analysis,data requirements analysis,object relationship package module analysis,performance requirement analysis and feasibility analysis for casual game server development provide the basis for object-relational mapping package design based on MongoDB database.(3)Through the prototype system and functional structure,MongoDB database relational object mapping is designed to encapsulate various functional modules and functional interfaces,and an object-relational mapping framework based on MongoDB database is implemented,which includes the database connection module and the core code of the data mapping module.(4)For the user data,subsystem and log data applications in the development of the rest game server,specific examples are given based on the object-relational mapping of the MongoDB database.Functional testing and performance testing of the packaged modules,the final results fully meet the design requirements.The research results of this paper fill the gaps in the C++ development platform using MongoDB database without object-relational mapping.Under the premise of meeting the research and development needs of the game server,the game developers can only pay attention to the implementation of the upper-layer game business logic,and do not need to care about the lower-level implementation process such as database connection and data loading and saving process.Thereby reducing the difficulty of research and development of the server,increasing the research and development efficiency of the server,and accelerating the progress of project research and development.
Keywords/Search Tags:ORM, MongoDB database, C++ Development Platform, Game Server
PDF Full Text Request
Related items