Skip to content

Instantly share code, notes, and snippets.

View bryankaraffa's full-sized avatar
👍

Bryan Karaffa bryankaraffa

👍
View GitHub Profile
@bryankaraffa
bryankaraffa / benchmark-postgis.sql
Last active August 29, 2015 14:20
Creates database, generates random data points, and runs a spatial query to benchmark PostGIS
/* Create point Database */
CREATE DATABASE points
WITH ENCODING='UTF8'
OWNER=postgres
LC_COLLATE='en_US.UTF-8'
LC_CTYPE='en_US.UTF-8'
CONNECTION LIMIT=-1;
/* Select the points database */
\c points;