The Query Translation from MySQL to MongoDB Taking into Account the Structure of the Database

被引:2
作者
Ha, Muon [1 ]
Shichkina, Yulia [1 ]
机构
[1] St Petersburg Electrotech Univ LETI, Dept Comp Sci & Engn, St Petersburg, Russia
来源
PROCEEDINGS OF THE 2021 IEEE CONFERENCE OF RUSSIAN YOUNG RESEARCHERS IN ELECTRICAL AND ELECTRONIC ENGINEERING (ELCONRUS) | 2021年
关键词
MySQL; MongoDB; query processing; translation queries; syntax diagram;
D O I
10.1109/ElConRus51938.2021.9396591
中图分类号
TM [电工技术]; TN [电子技术、通信技术];
学科分类号
0808 ; 0809 ;
摘要
This article discusses an approach to translate queries from MySQL to MongoDB taking into account the structure of the database which consists of four phases. In the first phase, the process of parsing the incoming queries MySQL are using building syntax grammar. In the second phase, a dictionary of query parts is created from the result of the first phase based on the aggregation structure MongoDB. In the next step, the structure of the database MongoDB is defined by converting collection data to structure tree and dictionary of query parts is updated for matching the structure of target database. In the last phase, the query of the database MongoDB is synthesized from building dictionary. In the end, this article shows the result of testing of the proposed approach with the different queries.
引用
收藏
页码:383 / 386
页数:4
相关论文
共 6 条
[1]   UnQL: a query language and algebra for semistructured data based on structural recursion [J].
Buneman, P ;
Fernandez, M ;
Suciu, D .
VLDB JOURNAL, 2000, 9 (01) :76-110
[2]  
Calil Andre, 2012, Advances in Databases and Information Systems. Proceedings 16th East European Conference, ADBIS 2012, P99, DOI 10.1007/978-3-642-33074-2_8
[3]  
Costa A., 2016, P 12 BRAZ S INF SYST, V1, P224
[4]  
Kornacker M., 2015, P C INN DAT SYST RES
[5]  
Ringlstetter A, 2016, 2016 IEEE/ACM 2ND INTERNATIONAL WORKSHOP ON BIG DATA SOFTWARE ENGINEERING (BIGDSE 2016), P33, DOI [10.1109/BIGDSE.2016.014, 10.1145/2896825.2896827]
[6]  
Rith J, 2014, 29 ANN ACM S APPL CO, P855