{"title":"Querying MongoDB with LINQ in a Server-Side JavaScript Environment","authors":"K. Nakabasami, T. Amagasa, H. Kitagawa","doi":"10.1109/NBiS.2013.54","DOIUrl":null,"url":null,"abstract":"This paper discusses an extension of JSINQ, a JavaScript implementation of LINQ, to provide an ability to query MongoDB, a popular document-oriented NoSQL storage. In recent Web systems, it has become popular to use NoSQL storage for data management, and to use JavaScript not only on client-side, but also on server-side due to the popularization of server-side JavaScript environments. Meanwhile, LINQ is being used to facilitate querying or manipulating data in various programming languages, such as C# and JavaScript, using an SQL-like syntax. However, current implementations of LINQ in JavaScript do not support MongoDB. To this problem, we extend JSINQ to provide an ability to query MongoDB. More precisely, we extend JSINQ so that we can specify the MongoDB collection to query. When processing a LINQ query, we extract the query conditions related to MongoDB collections, rewrite them to those in MongoDB API format, and send the rewritten queries to MongoDB. When the results are back, we convert them in a in-memory data structure, and pass them to the JSINQ processor. We conduct some experiments based on TPC-H to show the feasibility and the scalability of the proposed system.","PeriodicalId":261268,"journal":{"name":"2013 16th International Conference on Network-Based Information Systems","volume":"14 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2013-09-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"5","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2013 16th International Conference on Network-Based Information Systems","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/NBiS.2013.54","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 5
Abstract
This paper discusses an extension of JSINQ, a JavaScript implementation of LINQ, to provide an ability to query MongoDB, a popular document-oriented NoSQL storage. In recent Web systems, it has become popular to use NoSQL storage for data management, and to use JavaScript not only on client-side, but also on server-side due to the popularization of server-side JavaScript environments. Meanwhile, LINQ is being used to facilitate querying or manipulating data in various programming languages, such as C# and JavaScript, using an SQL-like syntax. However, current implementations of LINQ in JavaScript do not support MongoDB. To this problem, we extend JSINQ to provide an ability to query MongoDB. More precisely, we extend JSINQ so that we can specify the MongoDB collection to query. When processing a LINQ query, we extract the query conditions related to MongoDB collections, rewrite them to those in MongoDB API format, and send the rewritten queries to MongoDB. When the results are back, we convert them in a in-memory data structure, and pass them to the JSINQ processor. We conduct some experiments based on TPC-H to show the feasibility and the scalability of the proposed system.