EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
Testing spatial data deliverance in SQL and NoSQL Database
1. Testing Spatial Data Deliverance in SQL
and NoSQL Database using NodeJS
Fullstack Web App
Dany Laksono
International Conference on Science and Technology (ICST)
Yogyakarta, 7-8 August 2018
2. Presentation Outline: SQL vs NoSQL for Spatial Data
• Motivation
• SQL and No-SQL Database
• NodeJS Fullstack framework
• Methodology
• Test Datasets
• Architecture of MEAN Fullstack Apps
• Analyzing XHR Deliverance
• Result and Conclusion @ITHare
3. > Exponentially growing number of unstructured geospatial data (e.g. Instagram Posts)
Motivation
RDBMS is a well-known
solution for storing spatial
data on the web.
1
No-SQL is a new database
paradigm designed for
storing large, unstructured
data, especially for the web
2
How well does NoSQL
perform on delivering
spatial data on the web
compared to the traditional
SQL databases?
3
5. Methodology
The test dataset
50 POIs
500 POIs
5.000 POIs
50.000 POIs
5.000.000 POIs
Randomly generated Points in
Yogyakarta area using QGIS
The 500POIs
6. Methodology
MEAN Framework for testing DB’s performance
Test Datasets
QGIS
Python Script
PostGIS
MongoDB
Sequelize
Mongoose
ExpressJS
AngularJS
+
LeafletJS
Chrome Dev Tools
B-Tree Index
2D Sphere Index
Angular-Fullstack
WebApp
HAR Analyzer
/api/Mongodb50s
/api/postgis/50s
8. Methodology
HAR Analyzer for XMLHttpRequest
Controller
Angular-
LeafletJS
Endpoint
Mongoose
Sequelize
MongoDB
PostGIS
XMLHTTPRequests
Shown: Response time for PostGIS
9. Result
Response time for each dataset
No. of POIs
XHR Timing (ms)
PostGIS MongoDB
50 206 83
500 632 239
5000 1276 621
50000 17458 3470
500000 ∞ (failed) 36413
50s 500s 5000s 50000s
LOADINGTIME
NO. OF POI
RESPONSE TIME OF POI
PostGIS MongoDB
Response time (shorter is better)
10. Conclusions
What’s Next? @ITHare
> NoSQL (i.e. MongoDB) performs better in
delivering large spatial data compared
to traditional SQL (PostGIS)
> A MEAN Framework could be used as a
Web GIS Framework, as an alternative to
LAMP Framework widely used today
> The larger the dataset, the longer the data
needs to be loaded to client (with
MongoDB still goes faster than PostGIS)
Develop a WebGIS Framework based on MEAN