Computation (May 2020)

Creating Collections with Embedded Documents for Document Databases Taking into Account the Queries

  • Yulia Shichkina,
  • Muon Ha

DOI
https://doi.org/10.3390/computation8020045
Journal volume & issue
Vol. 8, no. 2
p. 45

Abstract

Read online

In this article, we describe a new formalized method for constructing the NoSQL document database of MongoDB, taking into account the structure of queries planned for execution to the database. The method is based on set theory. The initial data are the properties of objects, information about which is stored in the database, and the set of queries that are most often executed or whose execution speed should be maximum. In order to determine the need to create embedded documents, our method uses the type of relationship between tables in a relational database. Our studies have shown that this method is in addition to the method of creating collections without embedded documents. In the article, we also describe a methodology for determining in which cases which methods should be used to make working with databases more efficient. It should be noted that this approach can be used for translating data from MySQL to MongoDB and for the consolidation of these databases.

Keywords