RUS  ENG
Full version
JOURNALS // Informatics and Automation // Archive

Tr. SPIIRAN, 2020 Issue 19, volume 4, Pages 829–854 (Mi trspy1118)

This article is cited in 1 paper

Artificial Intelligence, Knowledge and Data Engineering

Method for creating collections with embedded documents for document-oriented databases taking into account executable queries

Yu. A. Shichkina, Ha Van Muon

Saint Petersburg Electrotechnical University "LETI"

Abstract: In the recent decades, NoSQL databases have become more popular day by day. And increasingly, developers and database administrators, for whatever reason, have to solve the problems of database migration from a relational model in the model NoSQL databases like the document-oriented database MongoDB database. This article discusses the approach to this migration data based on set theory. A new formal method of determining the optimal runtime searches aggregate collections with the attached documents NoSQL databases such as the key document. The attributes of the database objects are included in optimizing the number of collections and their structures in search queries. The initial data are object properties (attributes, relationships between attributes) on which information is stored in the database, and query the properties that are most often performed, or the speed of which should be maximal. This article discusses the basic types of connections (1-1, 1-M, M-M), typical of the relational model. The proposed method is the following step of the method of creating a collection without embedded documents. The article also provides a method for determining what methods should be used in the reasonable cases to make work with databases more effectively. At the end, this article shows the results of testing of the proposed method on databases with different initial schemes. Experimental results show that the proposed method helps reduce the execution time of queries can also significantly as well as reduce the amount of memory required to store the data in a new database.

Keywords: noSQL, database query, collections, document key, broadcast data, data format, creating the database structure, embedded documents.

UDC: 006.72

Received: 20.07.2020

DOI: 10.15622/sp.2020.19.4.5



© Steklov Math. Inst. of RAS, 2024