SQL Versus Nosql Databases for Geospatial Applications

SQL Versus Nosql Databases for Geospatial Applications

SQL versus NoSQL Databases for Geospatial Applications Elena Baralis, Andrea Dalla Valle, Paolo Garza Claudio Rossi and Francesco Scullino Dipartimento di Automatica e Informatica Microsoft Innovation Center Politecnico di Torino Istituto Superiore Mario Boella (ISMB) Torino, Italy Torino, Italy [email protected] [email protected] [email protected] [email protected] [email protected] Abstract—In the last years, we are witnessing an increasing interest in cloud-based solutions, the application is devel- availability of geolocated data, ranging from satellite images to oped using the Software-as-a-Service (SaaS) approach and user generated content (e.g., tweets). This big amount of data is also the geospatial database is deployed in the cloud using exploited by several cloud-based applications to deliver effective and customized services to end users. In order to provide a good such approach. This configuration allows us to evaluate the user experience, a low-latency response time is needed, both efficiency of geospatial databases when they are deployed in when data are retrieved and provided. To achieve this goal, a cloud-based system with the SaaS service model, which current geospatial applications need to exploit efficient and is becoming increasingly adopted, against operational costs. scalable geospatial databases, the choice of which has a high The basic functionalities of the implemented application impact on the overall performance of the deployed applications. In this paper, we compare, from a qualitative point of view, are similar to those of several other developed in different four state-of-the-art SQL and NoSQL databases with geospatial contexts. Specifically, it allows the end users to retrieve or features, and then we analyze the performances of two of them, send geolocated data based on their location, which is one of selecting the ones based on the Database-as-a-service (DBaaS) the standard behaviors of a general location based service. model: Azure SQL Database and Azure DocumentDB (i.e., an The performed experiments highlight pros and cons of the SQL database versus a NoSQL one). The empirical evaluation shows pros and cons of both solutions and it is performed on a analyzed geospatial databases. real use case related to an emergency management application. The main contributions of this paper are (i) a qualitative comparison of geospatial databases, (ii) a performance com- Keywords-Big Geospatial data; Geospatial databases; parison of two them in a real use case, i.e., a Cloud-based Database-as-a-service (DBaaS) SaaS deployment, and (iii) a summary of pros and cons of the evaluated SQL and NoSQL solutions. The paper is organized as follows. Section II describes the I. INTRODUCTION related work, while Section III analyzes the main features The availability of big geospatial and geolocated data of the four state-of-the-art geospatial databases and compare significantly increased in the last years [1], [2] and many them from a qualitative point of view. Section IV reports a applications have been proposed to exploit geospatial data case study, an emergency management geospatial application to provide innovative services tailored to users needs in that is used in Section V to evaluate the performances different domains (e.g., smart cities, IoT, emergency man- of SQL and NoSQL geospatial databases from different agement, archeology [3], [4], [5], [6], [7], [8]). In order point of views. Finally, Section VI draws conclusions and to provide a good user experience, efficient geospatial describes future work. databases are needed. For this reason, we evaluate state- of-the-art geospatial databases in order to understand which II. RELATED WORK are the pros and cons of the current solutions. We consider Current databases are usually classified in two macro- both SQL and NoSQL databases [9] to understand which categories: relational databases (e.g., [10], [11], [12]) and category of databases is more efficient for managing large NoSQL databases (e.g., [13], [14], [15], [16]). Relational geospatial data. Specifically, we initially compare four state- databases are usually the most appropriate and efficient of-the-art geospatial databases by considering only their choice when data are structured (i.e., when data are charac- features. Then, we perform a large set of experiments to terized by a known a-priori and fixed set of attributes known evaluate the efficiency of the selected geospatial databases at design time). Differently, NoSQL databases, such as key- by means of a real application, which has been designed for value-based and document-oriented databases, are usually supporting emergency management services related to flood, more appropriate when the input data collection contains fire, and extreme weather events. Since there is an increasing unstructured or semi-structured data, or when the structure (attributes) of the data evolves overtime and it is (partially) For each of them we highlight pros and cons, from a unknown at design time. The majority of the traditional qualitative point of view, by taking into consideration also databases are mainly focused on non-spatial data. However, the application scenario in which they are generally used. since such type of data play an important role in many application domains, several spatial databases, relational and A. Relational databases not, have been proposed to manage and query geospatial Relational databases (e.g., [17], [10], [11], [12]) are well- data [10], [11], [13], [14]. Spatial databases, or in general established systems used for storing and querying large databases with (geo)spatial features, are usually an extension structured data sets. They are based on the relational model, of traditional databases in which ad-hoc (geo)spatial data i.e., a set of tables where each table is used to represent types, query operators and indexes are integrated. The most a set of objects with similar characteristics. They have common use of geospatial databases consists in executing been successfully used in both Online transaction processing queries that select all the objects contained in a geographical (OLTP) and Online Analytical Processing (OLAP) applica- area or the k-Nearest Neighbours of an input object. Some tions. Many solutions have been proposed for increasing of the most famous and commonly used state-of-the-art the efficiency of relational databases, some of which are relational databases with geospatial features are SQL Server also characterized by geospatial features (e.g., [17], [10], 2016 [17] and its cloud version, which is also commercially [11]). Specifically, indexes and partitioning are commonly named Azure SQL Database [10], and PostGIS [11], while used to boost their performances. In the following, we two well established NoSQL databases with geospatial fea- describe two of the most commonly used relational databases tures are DocumentDB [13] and MongoDB [14]. with geospatial features: Azure SQL Database [10] and The advantages and disadvantages of relational vs non- PostGIS [11]. relational databases have been throughly analyzed in many 1) Azure SQL Database: Azure SQL Database [10] is a papers [18], [9]. However, the reported analyses are not relational Database-as-a-Service (DBaaS). It has the same focused on the geospatial features of the selected databases. functionalities of the centralized Microsoft SQL Server In this paper, we perform a qualitative and quantitative 2016 [17] but it is provided as a service in the cloud. analyses of the geospatial characteristics, comparing SQL It can be easily and dynamically adapted to the load of vs no-SQL databases. applications by using a scale-up approach. Through a simple In recent years, we witnessed an increasing interest in graphical interface, the database administrator can increase cloud-based applications deployed using the Database-as-a- the power of the server that is used to run the database, and service (DBaaS) model [19]. When the database is provided the Azure system transparently increases the performances as a service, developers/application owners do not have to of the database while avoiding service interruptions and install and maintain the databases used by their applications. data losses. Both Azure SQL Database and Microsoft SQL The provider offers a pre-defined set of service levels, each Server 2016 allow defining and quering spatial objects. They of which is generally associated to a monthly costs that support two main categories of data types: (i) Geometry, includes the hosting, the installation and the maintenance which represents data on a Euclidean coordinate system by operations. In this way, the developers/application owners using flat XY coordinate pairs and (ii) Geography, which can focus on the design of the database without worry about represents data on an earth-like spherical coordinate system software and hardware failures and updates. For instance, in longitude-latitude shape. Moreover, Azure SQL Database Microsoft offers both SQL [10] and NoSQL [13] databases can manage the standard spatial objects (e.g., Point, Mul- as services. However, several other vendors provide similar tiPoint, Polygon, MultiPolygon) and standard spatial opera- services (e.g., Amazon Web Services and Oracle). More- tions available for geography objects (e.g., Intersection, Dis- over, the Database-as-a-service model allows increasing or tance, Difference, Within). Specifically Azure SQL Database decreasing the performances of the database on demand, implements the Simple Features for SQL specification from depending on the current work load of the system. The the Open Geospatial Consortium (OGC) [20], [21]. Azure performance analysis of DBaaS databases in combination SQL Database and Microsoft SQL Server 2016 support with location based services deployed using HTTP web also spatial indexes, which are implemented using the B- services is a practical yet interesting topic that has not been Tree (i.e., Binary Tree) data structure. Azure SQL Database addressed in previous work, and that we explore in this and Microsoft SQL Server 2016 are compatible with state- paper. of-the-art geographic information systems (GIS) such as ArcGIS [22] as well as with map server softwares such as III.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    10 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us