{"title":"将JSON文档存储到关系表中的非本机技术","authors":"D. Petković","doi":"10.1145/3428757.3429103","DOIUrl":null,"url":null,"abstract":"The natural way, how JSON documents can be queried and modified is to store them first in relational environment. In such a case, the features of relational DBMSs such as transaction processing, can be used. In this paper we compare two different mapping techniques: Adjacency List and the Single-Table Data Mapping (STDM) algorithm, which can be used, among other techniques, to store JSON documents in relational tables. The reason to choose and compare these two techniques is due to their origin: both are representatives of two different non-native storing techniques. The former is a general technique, which can be applied to any data presented in hierarchical form, while the latter is a representative of the family of XML-to-Relational storage algorithms, which can be used for JSON, too. Our results show that using the STDM algorithm the size of resulting relational table is approximately 70% of the size of the corresponding table generated with Adjacency List. Additionally, the STDM algorithm significantly outperforms Adjacency List concerning time.","PeriodicalId":212557,"journal":{"name":"Proceedings of the 22nd International Conference on Information Integration and Web-based Applications & Services","volume":"10 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-11-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":"{\"title\":\"Non-native Techniques for Storing JSON Documents into Relational Tables\",\"authors\":\"D. Petković\",\"doi\":\"10.1145/3428757.3429103\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"The natural way, how JSON documents can be queried and modified is to store them first in relational environment. In such a case, the features of relational DBMSs such as transaction processing, can be used. In this paper we compare two different mapping techniques: Adjacency List and the Single-Table Data Mapping (STDM) algorithm, which can be used, among other techniques, to store JSON documents in relational tables. The reason to choose and compare these two techniques is due to their origin: both are representatives of two different non-native storing techniques. The former is a general technique, which can be applied to any data presented in hierarchical form, while the latter is a representative of the family of XML-to-Relational storage algorithms, which can be used for JSON, too. Our results show that using the STDM algorithm the size of resulting relational table is approximately 70% of the size of the corresponding table generated with Adjacency List. Additionally, the STDM algorithm significantly outperforms Adjacency List concerning time.\",\"PeriodicalId\":212557,\"journal\":{\"name\":\"Proceedings of the 22nd International Conference on Information Integration and Web-based Applications & Services\",\"volume\":\"10 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2020-11-30\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"3\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Proceedings of the 22nd International Conference on Information Integration and Web-based Applications & Services\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/3428757.3429103\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 22nd International Conference on Information Integration and Web-based Applications & Services","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3428757.3429103","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Non-native Techniques for Storing JSON Documents into Relational Tables
The natural way, how JSON documents can be queried and modified is to store them first in relational environment. In such a case, the features of relational DBMSs such as transaction processing, can be used. In this paper we compare two different mapping techniques: Adjacency List and the Single-Table Data Mapping (STDM) algorithm, which can be used, among other techniques, to store JSON documents in relational tables. The reason to choose and compare these two techniques is due to their origin: both are representatives of two different non-native storing techniques. The former is a general technique, which can be applied to any data presented in hierarchical form, while the latter is a representative of the family of XML-to-Relational storage algorithms, which can be used for JSON, too. Our results show that using the STDM algorithm the size of resulting relational table is approximately 70% of the size of the corresponding table generated with Adjacency List. Additionally, the STDM algorithm significantly outperforms Adjacency List concerning time.