Getting The Best Performance For GeoJSON Map Visualizations: PostGIS Vs CouchDB Backend
Video in TIB AVPortal:
Getting The Best Performance For GeoJSON Map Visualizations: PostGIS Vs CouchDB Backend
57 views
Formal Metadata
Title 
Getting The Best Performance For GeoJSON Map Visualizations: PostGIS Vs CouchDB Backend

Title of Series  
Author 

License 
CC Attribution  ShareAlike 3.0 Unported:
You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal and noncommercial purpose as long as the work is attributed to the author in the manner specified by the author or licensor and the work or content is shared also in adapted form only under the conditions of this license. 
Identifiers 

Publisher 
FOSS4G, Open Source Geospatial Foundation (OSGeo)

Release Date 
2013

Language 
English

Production Place 
Nottingham

Content Metadata
Subject Area  
Abstract 
In order to deliver rich user experience to user, features (attribute data and geometries) have to be sent to the client for mouseover visual effects, synchronization between charts, tables and maps, and onthefly classifications. GeoJSON is one of the most popular encodings for the transfer of features for clientside map visualization. The performance of client visualizations depends on a number of factors: message size, client memory allocation, bandwidth, and the speed of the database backend amongst the main ones. Large GeoJSONencoded datasets can substantially slow down loading and stylization times, and also crash the browser when too many geometries are requested. A combination of techniques can be used to reduce the size of the data (polygon generalization, compression, etc). The choice of an opensource DBMS for geospatial applications used to be easy: PostGIS is powerful, wellsupported, robust and fast RDBMS ? On the other hand, unstructured data, such as (Geo)JSON, may be better served by documentoriented DBMS such as Apache CouchDB. The performance of PostGIS and CouchDB in producing GeoJSON polygons with different combination of factors that are known to affect performance was tested: compression of GeoJSON (zip) to reduce transmission times, different levels of geometry generalization (reducing the number of vertices in transferred geometries), precision reduction (the reduction of numbers of decimal digits encoding coordinates), and the use of a topological JSON encoding of geometries (TopoJSON) to avoid redundancy of edges transferred. We present the results of a benchmark exercise testing the performance of an OpenLayers interface backed by a persistence layer implemented using PostGIS and CouchD. Test data were collected using an automated test application based on Selenium, which allowed to gather repeated observations for every combination of factors and build statistical models of performance. These statistical models help to pick the best combination of techniques and DBMS, and to gauge the relative contribution of every technique to the overall performance.

00:00
Melting
Personal identification number
Mapping
Video game
Computer animation
Presentation of a group
Blog
Multiplication sign
Web browser
00:26
Web page
Metropolitan area network
Building
Personal identification number
Mapping
Projective plane
Core dump
Web browser
Mereology
Local Group
Power (physics)
Local Group
Sign (mathematics)
Process (computing)
Computer animation
Quicksort
Physical system
Reverse engineering
Physical system
02:00
Torus
Point (geometry)
Area
Polygon
Set (mathematics)
Server (computing)
Visual system
File format
Client (computing)
Division (mathematics)
Table (information)
Sound effect
Partition (number theory)
CAN bus
Mathematics
Computer animation
Vector space
Statement (computer science)
Statistics
Electronic visual display
03:34
Point (geometry)
Topological vector space
Complex (psychology)
Context awareness
Divisor
State of matter
Line (geometry)
Graph (mathematics)
Decision theory
Covering space
File format
Mass
Average
Number
Wave packet
Factor analysis
Data compression
Band matrix
Dependent and independent variables
Process (computing)
Divisor
Communications protocol
Logic gate
Sanitary sewer
Service (economics)
Overhead (computing)
Graph (mathematics)
Server (computing)
Computer file
Complex (psychology)
Client (computing)
Bit
Web browser
Graph (mathematics)
Process (computing)
Computer animation
Factory (trading post)
Dependent and independent variables
Encryption
Game theory
Film editing
06:52
Point (geometry)
Polygon
Boss Corporation
Graph (mathematics)
Spacetime
Key (cryptography)
Algorithm
Graph (mathematics)
Point (geometry)
Ripping
Shape (magazine)
Thresholding (image processing)
Functional (mathematics)
Thresholding (image processing)
Distance
Preprocessor
Subject indexing
Digital photography
Computer animation
Network topology
Dependent and independent variables
Arc (geometry)
Reading (process)
09:17
Statistical hypothesis testing
Group action
Divisor
Structural load
Demo (music)
Überlastkontrolle
Mathematical analysis
Graph (mathematics)
Sound effect
Voting
Degree (graph theory)
Sic
Roundness (object)
Testdaten
Data compression
Database
Energy level
Divisor
Metre
Theory of relativity
Hoax
Structural load
Length
Uniform convergence
Weight
Group action
Statistical hypothesis testing
Graph (mathematics)
Statistical hypothesis testing
Maxima and minima
Singleprecision floatingpoint format
Computer animation
Personal area network
Energy level
Separation axiom
11:06
Point (geometry)
Email
State observer
Set (mathematics)
Multiplication sign
Cloud computing
Firstorder logic
Graph (mathematics)
Area
Statistical hypothesis testing
Number
Factor analysis
Personal digital assistant
Dependent and independent variables
Website
Subtraction
Statistical dispersion
Decision theory
Real number
Point (geometry)
Client (computing)
Mereology
Control flow
Statistical hypothesis testing
Web browser
Statistical hypothesis testing
Band matrix
Number
Computer animation
Network topology
Noise
Condition number
Decimal
Game theory
Units of measurement
Window
Resultant
12:42
Polygon mesh
Distribution (mathematics)
Multiplication sign
Scientific modelling
Physical law
File format
Mereology
Variable (mathematics)
Number
Factor analysis
Frequency
Population density
Process (computing)
Sample (statistics)
Computer animation
Network topology
Database
Queue (abstract data type)
Cycle (graph theory)
Subtraction
14:18
Polygon
Query language
Set (mathematics)
Multiplication sign
3 (number)
Bit error rate
19 (number)
Summation
Subject indexing
Divisor
World Wide Web Consortium
Geometry
View (database)
Server (computing)
Bit
Mereology
Functional (mathematics)
Singleprecision floatingpoint format
Number
Computer animation
Database
Personal digital assistant
Function (mathematics)
Cuboid
Physical system
15:30
Point (geometry)
Polygon
Freeware
Linear regression
Graph (mathematics)
Decision theory
Scientific modelling
File format
Statistical hypothesis testing
Number
Data model
Factor analysis
Dependent and independent variables
Bus (computing)
Divisor
Logic gate
Zoom lens
Inheritance (objectoriented programming)
Geometry
Server (computing)
Point (geometry)
Theory
Set (mathematics)
Quantile
Graph (mathematics)
Dean number
Number
Computer animation
Database
Energy level
Figurate number
Procedural programming
Resultant
17:29
Geometry
Divisor
Graph (mathematics)
Line (geometry)
Scientific modelling
View (database)
Geometry
Mathematical analysis
Graph (mathematics)
Table (information)
Number
Sound effect
Data model
Factor analysis
Network topology
Dependent and independent variables
Zoom lens
Graph (mathematics)
Geometry
Sound effect
Usability
Prediction
Graph (mathematics)
Computer animation
Pi
Personal digital assistant
Energy level
19:06
Boss Corporation
Multitier architecture
Random number
Graph (mathematics)
Geometry
Set (mathematics)
Video game
Route of administration
Area
Variable (mathematics)
Graph (mathematics)
Data model
Number
Type theory
Computer animation
Thermal fluctuations
Data compression
Computer network
Data compression
Compilation album
Noise
Communications protocol
Bounded variation
Communications protocol
19:37
Point (geometry)
Geometry
Divisor
Numerical digit
State of matter
Graph (mathematics)
Dot product
Multiplication sign
Average
Formal language
Number
2 (number)
Statistical hypothesis testing
Sound effect
Data model
Prediction
Data compression
Average
Dependent and independent variables
Multiplication sign
Graph (mathematics)
Geometry
Point (geometry)
Projective plane
Prediction
Process (computing)
Computer animation
Network topology
Integrated development environment
Computer network
Data compression
Quicksort
Procedural programming
Reading (process)
22:33
Numerical digit
Logistic distribution
Graph (mathematics)
View (database)
File format
Online help
Mathematical analysis
Average
Total S.A.
Data model
Factor analysis
Dependent and independent variables
Authorization
output
Communications protocol
Physical system
Prolog
Graph (mathematics)
Statistical dispersion
Geometry
Point (geometry)
Physical law
Prediction
Greatest element
Statistical hypothesis testing
Graph (mathematics)
Number
Computer animation
Network topology
Database
Data compression
Pressure
00:01
was so much presentation and means going to go to Blog performance of Joe Jason in the browser and not much in the morning for the public in life and actually and
00:17
way to talk to you about their that timing for taxation now the joke thing gauges
00:29
of the Moon earlier this workers who were not but yet the said the mega on the day within the members and Hillary project and that is and we are
00:48
building of the system and and part of the user Group which is we do I signed the visit is the idea like science and trying to be sort of the laboratory in browser for a reserved all of which is pretty made because it is no such thing as a reverse the for what they get is that people like to see more of this year powers traffic and people sharing into resisting said the cost of the are of them are working on the same page but the euro is so a way of building on the south 32 said the bride and we of the that collected from various sauces across and cost by job are you then download and would as a combined tools and a gap in abroad for data and every should be supposed to now that we are
02:02
sorry that I should because it was decided not to be held approaches to use judges that the rest of fine wine to give the best possible log on the use of the so you can have a can of change a further mouth on the fly you can use brushing you can Gautier again highlights Tory on it priorities but you may end
02:37
up with something that is so large that the 200 audience because Australia for this particular difficult of air as it is you do just that the division of Australia interest is the only geocities to area the and you may she Australia the countries but or the British election the UK which means that you can point out that these are the 2 big pretty simple justice to point said that there is more than 40 of the retail for point more end of costing the you have to take it to find a way through but table does are sent to to browse on that occasion self is the across statement now being this
03:37
decision by training wanted the bill and will do so that stock thinking about what the factory 2nd before must could be right effective affecting before they could control it causticiser response might is exhibited in the most fixed but the fact is there are being as performance of costs on the quality is actually the for says if TVs some reasons but up along with the really would like to would like to understand what says the without was losing the performance is each TVs is opposed to playing now this summer it is a little more this was side now is to take his side sell it Greece can be so it is on on the commission these factors compression because the of tried to go comprise we know about 2 G zip compressed Yoplait the gloriously Shand Kydd attended as well as reduced to a state scintillating with David Correa jokes and to the job but the job of the cost of paying 6 distributed on the road at the gates of the point if you happen on for the response you didn't of Jason under so that the features and the number of points that began the body that where daily where they might make a point about the down said that he is just a number of plotting of a bullet away we death only with audiences said would allowing points off the try by employers and was context to show that you can send to arouse said booking so looking to be more
05:50
about the of cost though and supposed to be some so far thought because uses the size of the a TVs is a good factory goes up a bit with which he later by always so kind of are it but that it didn't think that was a factor affecting because they are the and shaking up usually the but because his kept alive to be 1 said it should be for the land and are willing to just both sizes of and 200 kill by the sea yet which has accused the BBC of the masses of cut and what it is without found of a point that could be reduced as well is a given that the game is generalisation is to review which there are more over the complexity of the house Cook and
06:54
think that you should be there that this is the venerable diversity of the UK on busy signify allowing for offences of allowing classrooms why just drawings sexist on the cricket sophisticated and 1 point other Zong lying and sitting at fresh or if that is the key from the segment to this point is that the threshold this point lead and that is the way I see it sympathetic early on the tour in the but broke points without a trip to match the shape of the body now this fight it will point before the end point of which are could be used to cut then and the generates a 1 point on the day before from the point of the journey from of departing on adjacent to say you're not and index for all the things that went to the said this well you use the as he simply fibrous of foraging function of was also see below the preprocessing photographers was the boss but nothing that would reduce of an
08:18
old mill your familiar with the on a busy that he is Jason using topology as the name suggests and now said it had decided Claudio opened to the public gaze and every point is based recognise which means that we have to disappoint you are actually replicating the beginning data reading of Fox said it did not do as point on the coast ox you can shed saying are between the ages of 14 and aren't they space to fine for UK as a collection of and delays of Fox chicken and not point on and you can read reuse the same are made difficult 42 point to take the body the Zakia is a reduced size sell your
09:21
isation all it which shows just Axler were worries to load generalisations database and the because we ought to work on which are translated into 2 1 kilometre are free of the pack at the highest level during the should and made 2 more but that more detail and but off on deal used of state of despite and
09:55
round here now the test used On we had 1 in the 3rd the the giant which patient the simulated with use so it so they are on a record of like 200 pounds of relations then that was the beginning order to have 3 1 thousand action then W those who want other actions in each of the others in the UK I was played back is still on people's playback using before commission factors database of compression yes it said that we ended up with about 70 thousand on the Friends of separation all we had was we have the ability to matters more of fraud and with the when they do it is more by making no J connected to custody and some him set in order to
11:08
reduce the number of such as possible the number of Britons now observations we're understand night time loading weekend with a dedicated the and the windows we and we will fight for it of worried use the bandwidth to order and the but just 2 Tests releasing a violin and and for there was no cost browse of abuse every of my will of arrests and something to to declined to its Italy was not catching so ahead of the game some cash would without the Dome declined those yet it said that we try to reduce the the noise to a minimal sale we had but I do we of
12:09
results so different times for celebration we so it has claiming that actually a note is to begin with there was much idea when there were more to 400 Jama trees reverse so looking and a rodeo with a 14 year by the draw for the 1st points to pay because the way that we would be able to do for promoting this idea is results where that is
12:46
time to get the frequency of timing but the care in the 0 Tree cycles of but is still a long queue heading back to on the side is a kind that is playing and that was expected because the density of the Joe Mitra's different from what part of number of joint research in the UK and the and the dollar mesh old throughput Jodie's prosecco 2nd which is what we are interested in lightly because we just want to put my point of as possible and it for some time and is roughly health which is now 1st foremost but
13:42
these 2 would Jason but it was supported by the latest to pick up by the way we think about that but we didn't work in the 3 months ago there always give dualuse and model to a stint on how much which and could help protect improve before a using that this is law that which would some might say I'm no real died on a job well nigh cholera prided using the lead at the leader of the free kick said yet this sector
14:20
1st with a reality is about to be accused of being over the happy that the light of a defender stuffed because the current imitation of out is lower than about how much lower well that were safe from 50 per cent to 150 per cent up design just by using money most based on the same day time loading the in Boston and in interested and there with a bit of facing but said we reduce a week from now on we focused on the ball case can because we find out Djokovic was not yet up to speak but now
15:09
actually attractive to think this will make your Catchword for such as the played with Leeds functions the trade and the season before that of these stories jump in different ways but they were out there erm
15:30
yes judges was the worst audit would and it is just to grab sunbathing Jogi's and to convert to Dover Jason using Econoline and and found out that could the police were already out of the decisive battles dramatic so Mouret which was reduced to reverse under the regional side of printed emporia which where say that you like then you may expect that to to be reduced to through Dichio by this figure on the set for statisticians among you off the the guys while trying to see and it is the parent and the UK roughly just and so on but pretty happy with the results and the now
16:30
says model there is a way suspicions of more than the were so a presumed that side was 1st procedure position in the number of the gates of the distant point we tried for and 15 15 is for precision for 3D 1 but still some is a well as is still good enough because the Dean the user 1 not is a different on procedure generalisation remember the introduction of a number of points for last each easy 1 daylight and consider yet says the bus to a white knight who carried some 1st mulling decided that we use uses aside before the now we the will 2
17:32
per or though the use size their Jomon Joyti because it was more used for 4 from the performance of the morning size but size but geometry whose size of cost depends of the number of the pop music and the Veterans but a gap is the fact that effects and said the fact which in this same trial all the commission factors that was just for the ride they too close to 400 to iterate is a shot it was 1 thing you to Senate for 22 is 1 of going to the issue of the critically 3 of things to add and in order to end the expected but predicted that it would epicuticle for the latest
18:32
what is the expected size 100 Geometries with a view for individual noses when the and agility that are not multiplied by for a case a roughly had 74 kilobyte it was a foul 1 precision 50 while we get bigger size also actually 40 5 per cent increase that is it is a predictable K before as model most
19:09
of the is joint it join in the
19:15
2nd set but it is not but the fact that our for size Georgia and protocol which is based in the Versace has and the compression boss when nice now there is
19:40
the interesting but this perverting as well because we find out that the reason they are more The for these in of the tree that but the compression is not drawn on the sidelines as the number of the probe plays far enough for the side that joined the bloc on said that the disease the predicted the use of language the guests and the right if you'd be which means that performance in the joys of a 2nd to put decreases of we think when the size joint increased but the scandal has been a Espers coffee it which was and is suprising because the state set where losing something when using it to be but we are project and we are using this to be the true sodality 24 and exactly we decided that she has fine but remember they were using this much with Washington the performance and nothing but the her which is that you have to allow of on where the Lions Esikia point of very much 1st set all happened to be exciting to build the fact in that but it is still something which I'd ever Cressida could be network that could be and declined to have a really tight to up to bid read or push also accept factors to account for Environment but still because even though it is the that are spread is just the sort of team for his more detail so it before Mathmos now said that it
21:41
predictions of this more on busy using this as the 1st of his 2 young is computed through but they would target so that the citizens of fight for the position and all wheel again for 96 Geometries which is the average price of size and job 40 which we have from the you get that kind of 0 3 seconds if you use and the commercial sector was a 1 in 50 of the procedure and then you will get more but in the Times for performance to points 6 seconds is idea how these important factor now
22:34
because of light British authorities Samos before noticing that his size the Jodie but we know in it is a view that 70 per cent said introduced the underlying factory and with yet it is that they will roughly double the performance said by using the Woodrose instead of the trees and I'm expecting are systems to be the worst this is the prediction help to the to be turned out to be true to sell the but on that they
23:18
generate a showing eyes there was in the back of precisionist well Prolog plays a pot despite might a way of the 1st of Uncle pressures are in fact that it is pointless to to ship to Jews things and that is of course was back because that is the right 1 because of his is which are so accustomed to the current custody and the logistics of the deal before must book 6 but there you are with them 4 2 it is too old this will sort out yet call for of between the young that led to the private was a sitting on going to begin them available useful that they don't are strips of the new law questions OK her