SlideShare una empresa de Scribd logo
1 de 28
Descargar para leer sin conexión
Elephant vs. Dolphin
Comparing PostgreSQL and MySQL in the DoD
James Hanson
jhanson@freedomconsultinggroup.com
jamesphanson@yahoo.com
@jamey_hanson
Freedom Consulting Group
http://www.freedomconsultinggroup.com
14-Ju1-2015
 What are the similarities and differences between
PostgreSQL and MySQL?
 Highlight features that support projects delivering
capabilities in our environment
Elephant vs. Dolphin in the DoD
PostgreSQL Migration Team 14-Jul-20152
vs.
 They are both Relational Database Management
Systems (RDBMS)
 Store data in tables and views
 Relate tables with foreign keys that are automatically
updated with triggers
 Interact with data using ANSI SQL
 Support procedural programming language(s)
 Support "transactions"
COMMIT statement to make a permanent change
 Support multiple, concurrent connections working with the
same data
How are PostgreSQL and MySQL similar?
PostgreSQL Migration Team 14-Jul-20153
 On-line ("hot") backups and database exports
 Full or partial replication from Master to Standby
 Including “hot” Standby for reporting
 Multiple Standby with automatic failover
 Clustering support with virtual IP interface
 Command-line interface that can run scripts
 Bulk load tools for OS files
 Connection pooling tool(s)
Both have the expected suite of tools
PostgreSQL Migration Team 14-Jul-20154
PostgreSQL Migration Team 14-Jul-20155
Both have a GUI
PostgreSQL Migration Team 14-Jul-20156
Both have a GUI
 Free and “freemium” versions
 PostgreSQL has an active FOSS development
community.
MySQL FOSS development forked to MariaDB
 EnterpriseDB only supports PostgreSQL.
Oracle also supports (protects) Oracle RDBMS
 Both are included in CentOS / Fedora / RHEL
Similar distribution and business models
PostgreSQL Migration Team 14-Jul-20157
 Dr. Google has multiple, conflicting performance
comparisons. An (over)simplification …
 MySQL is considered to be slightly faster in simple
(i.e. no join) queries
 PostgreSQL is faster in queries with joins and more
complex transactions
Similar performance
PostgreSQL Migration Team 14-Jul-20158
 Magic Quadrant for Operational Database
Management Systems.
 http://www.gartner.com/technology/reprints.do?id=1-
23A415Q&ct=141020&st=sb
What does the Gartner say?
PostgreSQL Migration Team 14-Jul-20159
What does the Gartner say?
PostgreSQL Migration Team 14-Jul-201510
 Strategic planning assumptions
 By 2017, the "NoSQL" label will cease to distinguish
DBMSs, which will reduce its value and result in it falling
out of use.
 By 2017, all leading operational DBMSs will offer multiple
data models, relational and NoSQL, in a single platform.
 EnterpriseDB (i.e. PostgreSQL) has higher
Completeness of Vision and Ability to Execute
What does the Gartner say?
PostgreSQL Migration Team 14-Jul-201511
 The MySQL™ software delivers a very fast, multi-
threaded, multi-user, and robust SQL (Structured
Query Language) database server.
(https://dev.mysql.com/)
 MySQL implements a subset of ANSI SQL and features
that are used by simple and (typically) ORM-based
applications.
 PostgreSQL delivers a fast, robust implementation of
the ANSI SQL standard with NoSQL*, geospatial,
row-level-security and partitioning support. It is also
extensible with multiple programming languages.
* JSON, XML, key-value-pair, limited graph queries and natural
language full-text search.
Different missions and visions:
PostgreSQL Migration Team 14-Jul-201512
Why the passion?
13
MySQL
PostgreSQL
 Oracle owns MySQL, which effectively means it will never
have a feature set that competes with Oracle RDBMS.
 Not everyone wants their database to support Larry’s
private island and America’s Cup
Business reasons …
PostgreSQL Migration Team 14-Jul-201514
 PostgreSQL’s mission is bigger than MySQL’s and
so it does more
 Full implementation of ANSI SQL (vs. MySQL subset)
 Native NoSQL support including JSON, XML, key-value-
pair and recursive (graph) queries.
Only Oracle RDBMS has these.
 GeoSpatial support with PostGIS
 Support for common language procedural extensions
Java, Python, Perl, Program/R
 Application-customized data types including IPv4/6,
range, array and ENUM
Technical reasons …
PostgreSQL Migration Team 14-Jul-201515
 Analytic functions (a.k.a. Windowing functions)
 Calculate moving average and similar statistics that can
only be done in the application tier with MySQL
How does that impact my mission?
PostgreSQL Migration Team 14-Jul-201516
 Find events within a user-select box, IP-location,
nearest event(s), event(s) within radius
 Use internal mapping and related services … for free
GeoSpatial data
PostgreSQL Migration Team 14-Jul-201517
 Validate IP’s on input (hard to do with IPv6)
 Find IPs within subnet (CIDR notation) or range
 Associate array’s of ports and/or MAC addresses
with IP(s)
 PostgreSQL lets you think like a router when working
with IPs rather than thinking like a parser
IPv4 / 6 data types (+ MAC)
PostgreSQL Migration Team 14-Jul-201518
 Beyond the Relational model for …
 Large data sets that need to be stored efficiently
 Focus on queries, relationships and analysis
(vs. transactions)
 Read-only data
 Does any of this sound applicable to our domain?
Arrays
PostgreSQL Migration Team 14-Jul-201519
 Similar to Apache SOLR, but automatically updated
and part of the database
 Not as fast or full-featured
 Ranked results base on search-term frequency
weighted for document size. Similar to TF/IDF.
 Highlighted surrounding phrases
Full-text search w/ranked results
PostgreSQL Migration Team 14-Jul-201520
 Leverage the skills your team has today
(any) Procedural language support
PostgreSQL Migration Team 14-Jul-201521
 Per Gartner – “By 2017, all leading operational DBMSs will
offer multiple data models, relational and NoSQL, in a single
platform.” (PostgreSQL does today)
 JSON support similar to MongoDB, but integrated with the
rest of your data
NoSQL support … JSON & XML
PostgreSQL Migration Team 14-Jul-201522
 HSTORE data type stores key-value pairs as a column in a
relational table
NoSQL support … key value pair
PostgreSQL Migration Team 14-Jul-201523
 PostgreSQL recursive* queries support graphs.* “recursive”
is the ANSI-SQL term.
 Similar functionality to Neo4J and SPARQL, but on smaller
data sets
NoSQL support … graph data
PostgreSQL Migration Team 14-Jul-201524
 PostgreSQL and MySQL are both good products for
simple, pure-relational applications using a subset of
ANSI-SQL
 They have similar performance & tools
 Both are free and “fremium”
 But MySQL will never have the features of Oracle RDBMS
… because Larry Ellison won’t allow it.
 MariaDB has FOSS active development, but it is a fork – not
MySQL
Summary
PostgreSQL Migration Team 14-Jul-201525
 Consider PostgreSQL if, over the lifespan of your project,
you ever envision …
 Using JSON, XML, key-value pair or other NoSQL data
 Validating, storing or analyzing IPv4/6 or MAC addresses
 Points on a map, selecting records based on a bounding-box,
searching for nearby/far-away records or looking for
communication that crosses a geographic boundary
 Performing moving averages, Excel pivot-table queries or
advanced statistics
 Leveraging your team’s Java, Python, Perl, TCL or Program /R
skills
 Using (simple) graph analysis to find a path between records
Summary
PostgreSQL Migration Team 14-Jul-201526
 Contact any member of the PostgreSQL Migration Team
 James Hanson, Chris Fort and Russell Janusz
 Connect to our YUM repository (or GUI installer) … and go
 Contact Corporate Hosting … and let them host your
PostgreSQL database and VM
 Contact Aaron Pestel or James Hanson for capability and
license information on EnterpriseDB
OK great … how do I move forward?
PostgreSQL Migration Team 14-Jul-201527
Are
there
any
Questions
or
follow up?
PGConf US, NYC 26-
Mar-2015
28

Más contenido relacionado

La actualidad más candente

MariaDB: Connect Storage Engine
MariaDB: Connect Storage EngineMariaDB: Connect Storage Engine
MariaDB: Connect Storage EngineKangaroot
 
Connector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document Store
Connector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document StoreConnector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document Store
Connector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document StoreFilipe Silva
 
MySQL NDB Cluster 8.0
MySQL NDB Cluster 8.0MySQL NDB Cluster 8.0
MySQL NDB Cluster 8.0Ted Wennmark
 
NoSQL databases - An introduction
NoSQL databases - An introductionNoSQL databases - An introduction
NoSQL databases - An introductionPooyan Mehrparvar
 
Sql vs NO-SQL database differences explained
Sql vs NO-SQL database differences explainedSql vs NO-SQL database differences explained
Sql vs NO-SQL database differences explainedSatya Pal
 
Run Cloud Native MySQL NDB Cluster in Kubernetes
Run Cloud Native MySQL NDB Cluster in KubernetesRun Cloud Native MySQL NDB Cluster in Kubernetes
Run Cloud Native MySQL NDB Cluster in KubernetesBernd Ocklin
 
MySQL Performance - Best practices
MySQL Performance - Best practices MySQL Performance - Best practices
MySQL Performance - Best practices Ted Wennmark
 
NoSQL databases pros and cons
NoSQL databases pros and consNoSQL databases pros and cons
NoSQL databases pros and consFabio Fumarola
 
Polyglot Database - Linuxcon North America 2016
Polyglot Database - Linuxcon North America 2016Polyglot Database - Linuxcon North America 2016
Polyglot Database - Linuxcon North America 2016Dave Stokes
 
What Your Database Query is Really Doing
What Your Database Query is Really DoingWhat Your Database Query is Really Doing
What Your Database Query is Really DoingDave Stokes
 
Benchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDB
Benchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDBBenchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDB
Benchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDBAthiq Ahamed
 
SQL vs. NoSQL. It's always a hard choice.
SQL vs. NoSQL. It's always a hard choice.SQL vs. NoSQL. It's always a hard choice.
SQL vs. NoSQL. It's always a hard choice.Denis Reznik
 
"Advanced MySQL 5 Tuning" by Michael Monty Widenius @ eLiberatica 2007
"Advanced MySQL 5 Tuning" by Michael Monty Widenius @ eLiberatica 2007"Advanced MySQL 5 Tuning" by Michael Monty Widenius @ eLiberatica 2007
"Advanced MySQL 5 Tuning" by Michael Monty Widenius @ eLiberatica 2007eLiberatica
 
NoSql Data Management
NoSql Data ManagementNoSql Data Management
NoSql Data Managementsameerfaizan
 
Introduction to NOSQL databases
Introduction to NOSQL databasesIntroduction to NOSQL databases
Introduction to NOSQL databasesAshwani Kumar
 
What is NoSQL and CAP Theorem
What is NoSQL and CAP TheoremWhat is NoSQL and CAP Theorem
What is NoSQL and CAP TheoremRahul Jain
 
2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015
2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015 2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015
2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015 Geir Høydalsvik
 
IN-MEMORY DATABASE SYSTEMS FOR BIG DATA MANAGEMENT.SAP HANA DATABASE.
IN-MEMORY DATABASE SYSTEMS FOR BIG DATA MANAGEMENT.SAP HANA DATABASE.IN-MEMORY DATABASE SYSTEMS FOR BIG DATA MANAGEMENT.SAP HANA DATABASE.
IN-MEMORY DATABASE SYSTEMS FOR BIG DATA MANAGEMENT.SAP HANA DATABASE.George Joseph
 

La actualidad más candente (20)

MariaDB: Connect Storage Engine
MariaDB: Connect Storage EngineMariaDB: Connect Storage Engine
MariaDB: Connect Storage Engine
 
Connector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document Store
Connector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document StoreConnector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document Store
Connector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document Store
 
MySQL NDB Cluster 8.0
MySQL NDB Cluster 8.0MySQL NDB Cluster 8.0
MySQL NDB Cluster 8.0
 
NoSQL databases - An introduction
NoSQL databases - An introductionNoSQL databases - An introduction
NoSQL databases - An introduction
 
Sql vs NO-SQL database differences explained
Sql vs NO-SQL database differences explainedSql vs NO-SQL database differences explained
Sql vs NO-SQL database differences explained
 
Run Cloud Native MySQL NDB Cluster in Kubernetes
Run Cloud Native MySQL NDB Cluster in KubernetesRun Cloud Native MySQL NDB Cluster in Kubernetes
Run Cloud Native MySQL NDB Cluster in Kubernetes
 
MySQL Performance - Best practices
MySQL Performance - Best practices MySQL Performance - Best practices
MySQL Performance - Best practices
 
NoSQL databases pros and cons
NoSQL databases pros and consNoSQL databases pros and cons
NoSQL databases pros and cons
 
Polyglot Database - Linuxcon North America 2016
Polyglot Database - Linuxcon North America 2016Polyglot Database - Linuxcon North America 2016
Polyglot Database - Linuxcon North America 2016
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
 
What Your Database Query is Really Doing
What Your Database Query is Really DoingWhat Your Database Query is Really Doing
What Your Database Query is Really Doing
 
Benchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDB
Benchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDBBenchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDB
Benchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDB
 
SQL vs. NoSQL. It's always a hard choice.
SQL vs. NoSQL. It's always a hard choice.SQL vs. NoSQL. It's always a hard choice.
SQL vs. NoSQL. It's always a hard choice.
 
"Advanced MySQL 5 Tuning" by Michael Monty Widenius @ eLiberatica 2007
"Advanced MySQL 5 Tuning" by Michael Monty Widenius @ eLiberatica 2007"Advanced MySQL 5 Tuning" by Michael Monty Widenius @ eLiberatica 2007
"Advanced MySQL 5 Tuning" by Michael Monty Widenius @ eLiberatica 2007
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
 
NoSql Data Management
NoSql Data ManagementNoSql Data Management
NoSql Data Management
 
Introduction to NOSQL databases
Introduction to NOSQL databasesIntroduction to NOSQL databases
Introduction to NOSQL databases
 
What is NoSQL and CAP Theorem
What is NoSQL and CAP TheoremWhat is NoSQL and CAP Theorem
What is NoSQL and CAP Theorem
 
2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015
2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015 2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015
2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015
 
IN-MEMORY DATABASE SYSTEMS FOR BIG DATA MANAGEMENT.SAP HANA DATABASE.
IN-MEMORY DATABASE SYSTEMS FOR BIG DATA MANAGEMENT.SAP HANA DATABASE.IN-MEMORY DATABASE SYSTEMS FOR BIG DATA MANAGEMENT.SAP HANA DATABASE.
IN-MEMORY DATABASE SYSTEMS FOR BIG DATA MANAGEMENT.SAP HANA DATABASE.
 

Destacado

PostgreSQL vs MySQL: PostgreSQL como alternativa.
PostgreSQL vs MySQL: PostgreSQL como alternativa.PostgreSQL vs MySQL: PostgreSQL como alternativa.
PostgreSQL vs MySQL: PostgreSQL como alternativa.Arturo Espinosa
 
Converting from MySQL to PostgreSQL
Converting from MySQL to PostgreSQLConverting from MySQL to PostgreSQL
Converting from MySQL to PostgreSQLJohn Ashmead
 
Mvcc in postgreSQL 권건우
Mvcc in postgreSQL 권건우Mvcc in postgreSQL 권건우
Mvcc in postgreSQL 권건우PgDay.Seoul
 
PostgreSQL and Benchmarks
PostgreSQL and BenchmarksPostgreSQL and Benchmarks
PostgreSQL and BenchmarksJignesh Shah
 
Postgres Presentation
Postgres PresentationPostgres Presentation
Postgres Presentationgisborne
 
PostgreSQL Performance Tables Partitioning vs. Aggregated Data Tables
PostgreSQL Performance Tables Partitioning vs. Aggregated Data TablesPostgreSQL Performance Tables Partitioning vs. Aggregated Data Tables
PostgreSQL Performance Tables Partitioning vs. Aggregated Data TablesSperasoft
 
Announcing Amazon Aurora with PostgreSQL Compatibility - January 2017 AWS Onl...
Announcing Amazon Aurora with PostgreSQL Compatibility - January 2017 AWS Onl...Announcing Amazon Aurora with PostgreSQL Compatibility - January 2017 AWS Onl...
Announcing Amazon Aurora with PostgreSQL Compatibility - January 2017 AWS Onl...Amazon Web Services
 

Destacado (10)

PostgreSQL vs MySQL: PostgreSQL como alternativa.
PostgreSQL vs MySQL: PostgreSQL como alternativa.PostgreSQL vs MySQL: PostgreSQL como alternativa.
PostgreSQL vs MySQL: PostgreSQL como alternativa.
 
Why use PostgreSQL?
Why use PostgreSQL?Why use PostgreSQL?
Why use PostgreSQL?
 
Converting from MySQL to PostgreSQL
Converting from MySQL to PostgreSQLConverting from MySQL to PostgreSQL
Converting from MySQL to PostgreSQL
 
Mvcc in postgreSQL 권건우
Mvcc in postgreSQL 권건우Mvcc in postgreSQL 권건우
Mvcc in postgreSQL 권건우
 
Mysql vs postgresql
Mysql vs postgresqlMysql vs postgresql
Mysql vs postgresql
 
CDI 2.0 is upon us Devoxx
CDI 2.0 is upon us DevoxxCDI 2.0 is upon us Devoxx
CDI 2.0 is upon us Devoxx
 
PostgreSQL and Benchmarks
PostgreSQL and BenchmarksPostgreSQL and Benchmarks
PostgreSQL and Benchmarks
 
Postgres Presentation
Postgres PresentationPostgres Presentation
Postgres Presentation
 
PostgreSQL Performance Tables Partitioning vs. Aggregated Data Tables
PostgreSQL Performance Tables Partitioning vs. Aggregated Data TablesPostgreSQL Performance Tables Partitioning vs. Aggregated Data Tables
PostgreSQL Performance Tables Partitioning vs. Aggregated Data Tables
 
Announcing Amazon Aurora with PostgreSQL Compatibility - January 2017 AWS Onl...
Announcing Amazon Aurora with PostgreSQL Compatibility - January 2017 AWS Onl...Announcing Amazon Aurora with PostgreSQL Compatibility - January 2017 AWS Onl...
Announcing Amazon Aurora with PostgreSQL Compatibility - January 2017 AWS Onl...
 

Similar a Elephants vs. Dolphins: Comparing PostgreSQL and MySQL for use in the DoD

The Best of Both Worlds: Unlocking the Power of (big) Knowledge Graphs with S...
The Best of Both Worlds: Unlocking the Power of (big) Knowledge Graphs with S...The Best of Both Worlds: Unlocking the Power of (big) Knowledge Graphs with S...
The Best of Both Worlds: Unlocking the Power of (big) Knowledge Graphs with S...Gezim Sejdiu
 
Database Integrated Analytics using R InitialExperiences wi
Database Integrated Analytics using R InitialExperiences wiDatabase Integrated Analytics using R InitialExperiences wi
Database Integrated Analytics using R InitialExperiences wiOllieShoresna
 
PostgreSQL 10; Long Awaited Enterprise Solutions
PostgreSQL 10; Long Awaited Enterprise SolutionsPostgreSQL 10; Long Awaited Enterprise Solutions
PostgreSQL 10; Long Awaited Enterprise SolutionsJulyanto SUTANDANG
 
Pandas vs. SQL – Tools that Data Scientists use most often.pdf
Pandas vs. SQL – Tools that Data Scientists use most often.pdfPandas vs. SQL – Tools that Data Scientists use most often.pdf
Pandas vs. SQL – Tools that Data Scientists use most often.pdfData Science Council of America
 
Ted Willke, Senior Principal Engineer & GM, Datacenter Group, Intel at MLconf SF
Ted Willke, Senior Principal Engineer & GM, Datacenter Group, Intel at MLconf SFTed Willke, Senior Principal Engineer & GM, Datacenter Group, Intel at MLconf SF
Ted Willke, Senior Principal Engineer & GM, Datacenter Group, Intel at MLconf SFMLconf
 
Big data technology unit 3
Big data technology unit 3Big data technology unit 3
Big data technology unit 3RojaT4
 
Red Hat Summit 2017 - Intro to SQL Server on RHEL and Open Shift
Red Hat Summit 2017 - Intro to SQL Server on RHEL and Open ShiftRed Hat Summit 2017 - Intro to SQL Server on RHEL and Open Shift
Red Hat Summit 2017 - Intro to SQL Server on RHEL and Open ShiftTravis Wright
 
Pg no sql_beatemjoinem_v10
Pg no sql_beatemjoinem_v10Pg no sql_beatemjoinem_v10
Pg no sql_beatemjoinem_v10Jamey Hanson
 
Andriy Zrobok "MS SQL 2019 - new for Big Data Processing"
Andriy Zrobok "MS SQL 2019 - new for Big Data Processing"Andriy Zrobok "MS SQL 2019 - new for Big Data Processing"
Andriy Zrobok "MS SQL 2019 - new for Big Data Processing"Lviv Startup Club
 
PASS Summit - SQL Server 2017 Deep Dive
PASS Summit - SQL Server 2017 Deep DivePASS Summit - SQL Server 2017 Deep Dive
PASS Summit - SQL Server 2017 Deep DiveTravis Wright
 
A Pipeline for Distributed Topic and Sentiment Analysis of Tweets on Pivotal ...
A Pipeline for Distributed Topic and Sentiment Analysis of Tweets on Pivotal ...A Pipeline for Distributed Topic and Sentiment Analysis of Tweets on Pivotal ...
A Pipeline for Distributed Topic and Sentiment Analysis of Tweets on Pivotal ...Srivatsan Ramanujam
 
2009/11 Database Architechs Presentation
2009/11   Database Architechs Presentation2009/11   Database Architechs Presentation
2009/11 Database Architechs PresentationDatabase Architechs
 
Exploring Microsoft Azure Infrastructures
Exploring Microsoft Azure InfrastructuresExploring Microsoft Azure Infrastructures
Exploring Microsoft Azure InfrastructuresCCG
 
Building a modern data warehouse
Building a modern data warehouseBuilding a modern data warehouse
Building a modern data warehouseJames Serra
 
Why Spark Is the Next Top (Compute) Model
Why Spark Is the Next Top (Compute) ModelWhy Spark Is the Next Top (Compute) Model
Why Spark Is the Next Top (Compute) ModelDean Wampler
 
20160317 - PAZUR - PowerBI & R
20160317  - PAZUR - PowerBI & R20160317  - PAZUR - PowerBI & R
20160317 - PAZUR - PowerBI & RŁukasz Grala
 

Similar a Elephants vs. Dolphins: Comparing PostgreSQL and MySQL for use in the DoD (20)

The Best of Both Worlds: Unlocking the Power of (big) Knowledge Graphs with S...
The Best of Both Worlds: Unlocking the Power of (big) Knowledge Graphs with S...The Best of Both Worlds: Unlocking the Power of (big) Knowledge Graphs with S...
The Best of Both Worlds: Unlocking the Power of (big) Knowledge Graphs with S...
 
Database Integrated Analytics using R InitialExperiences wi
Database Integrated Analytics using R InitialExperiences wiDatabase Integrated Analytics using R InitialExperiences wi
Database Integrated Analytics using R InitialExperiences wi
 
Erciyes university
Erciyes universityErciyes university
Erciyes university
 
PostgreSQL 10; Long Awaited Enterprise Solutions
PostgreSQL 10; Long Awaited Enterprise SolutionsPostgreSQL 10; Long Awaited Enterprise Solutions
PostgreSQL 10; Long Awaited Enterprise Solutions
 
NoSQL Seminer
NoSQL SeminerNoSQL Seminer
NoSQL Seminer
 
Pandas vs. SQL – Tools that Data Scientists use most often.pdf
Pandas vs. SQL – Tools that Data Scientists use most often.pdfPandas vs. SQL – Tools that Data Scientists use most often.pdf
Pandas vs. SQL – Tools that Data Scientists use most often.pdf
 
Ted Willke, Senior Principal Engineer & GM, Datacenter Group, Intel at MLconf SF
Ted Willke, Senior Principal Engineer & GM, Datacenter Group, Intel at MLconf SFTed Willke, Senior Principal Engineer & GM, Datacenter Group, Intel at MLconf SF
Ted Willke, Senior Principal Engineer & GM, Datacenter Group, Intel at MLconf SF
 
Big data technology unit 3
Big data technology unit 3Big data technology unit 3
Big data technology unit 3
 
Red Hat Summit 2017 - Intro to SQL Server on RHEL and Open Shift
Red Hat Summit 2017 - Intro to SQL Server on RHEL and Open ShiftRed Hat Summit 2017 - Intro to SQL Server on RHEL and Open Shift
Red Hat Summit 2017 - Intro to SQL Server on RHEL and Open Shift
 
Pg no sql_beatemjoinem_v10
Pg no sql_beatemjoinem_v10Pg no sql_beatemjoinem_v10
Pg no sql_beatemjoinem_v10
 
Andriy Zrobok "MS SQL 2019 - new for Big Data Processing"
Andriy Zrobok "MS SQL 2019 - new for Big Data Processing"Andriy Zrobok "MS SQL 2019 - new for Big Data Processing"
Andriy Zrobok "MS SQL 2019 - new for Big Data Processing"
 
Sql good practices
Sql good practicesSql good practices
Sql good practices
 
PASS Summit - SQL Server 2017 Deep Dive
PASS Summit - SQL Server 2017 Deep DivePASS Summit - SQL Server 2017 Deep Dive
PASS Summit - SQL Server 2017 Deep Dive
 
A Pipeline for Distributed Topic and Sentiment Analysis of Tweets on Pivotal ...
A Pipeline for Distributed Topic and Sentiment Analysis of Tweets on Pivotal ...A Pipeline for Distributed Topic and Sentiment Analysis of Tweets on Pivotal ...
A Pipeline for Distributed Topic and Sentiment Analysis of Tweets on Pivotal ...
 
2009/11 Database Architechs Presentation
2009/11   Database Architechs Presentation2009/11   Database Architechs Presentation
2009/11 Database Architechs Presentation
 
Os Lonergan
Os LonerganOs Lonergan
Os Lonergan
 
Exploring Microsoft Azure Infrastructures
Exploring Microsoft Azure InfrastructuresExploring Microsoft Azure Infrastructures
Exploring Microsoft Azure Infrastructures
 
Building a modern data warehouse
Building a modern data warehouseBuilding a modern data warehouse
Building a modern data warehouse
 
Why Spark Is the Next Top (Compute) Model
Why Spark Is the Next Top (Compute) ModelWhy Spark Is the Next Top (Compute) Model
Why Spark Is the Next Top (Compute) Model
 
20160317 - PAZUR - PowerBI & R
20160317  - PAZUR - PowerBI & R20160317  - PAZUR - PowerBI & R
20160317 - PAZUR - PowerBI & R
 

Elephants vs. Dolphins: Comparing PostgreSQL and MySQL for use in the DoD

  • 1. Elephant vs. Dolphin Comparing PostgreSQL and MySQL in the DoD James Hanson jhanson@freedomconsultinggroup.com jamesphanson@yahoo.com @jamey_hanson Freedom Consulting Group http://www.freedomconsultinggroup.com 14-Ju1-2015
  • 2.  What are the similarities and differences between PostgreSQL and MySQL?  Highlight features that support projects delivering capabilities in our environment Elephant vs. Dolphin in the DoD PostgreSQL Migration Team 14-Jul-20152 vs.
  • 3.  They are both Relational Database Management Systems (RDBMS)  Store data in tables and views  Relate tables with foreign keys that are automatically updated with triggers  Interact with data using ANSI SQL  Support procedural programming language(s)  Support "transactions" COMMIT statement to make a permanent change  Support multiple, concurrent connections working with the same data How are PostgreSQL and MySQL similar? PostgreSQL Migration Team 14-Jul-20153
  • 4.  On-line ("hot") backups and database exports  Full or partial replication from Master to Standby  Including “hot” Standby for reporting  Multiple Standby with automatic failover  Clustering support with virtual IP interface  Command-line interface that can run scripts  Bulk load tools for OS files  Connection pooling tool(s) Both have the expected suite of tools PostgreSQL Migration Team 14-Jul-20154
  • 5. PostgreSQL Migration Team 14-Jul-20155 Both have a GUI
  • 6. PostgreSQL Migration Team 14-Jul-20156 Both have a GUI
  • 7.  Free and “freemium” versions  PostgreSQL has an active FOSS development community. MySQL FOSS development forked to MariaDB  EnterpriseDB only supports PostgreSQL. Oracle also supports (protects) Oracle RDBMS  Both are included in CentOS / Fedora / RHEL Similar distribution and business models PostgreSQL Migration Team 14-Jul-20157
  • 8.  Dr. Google has multiple, conflicting performance comparisons. An (over)simplification …  MySQL is considered to be slightly faster in simple (i.e. no join) queries  PostgreSQL is faster in queries with joins and more complex transactions Similar performance PostgreSQL Migration Team 14-Jul-20158
  • 9.  Magic Quadrant for Operational Database Management Systems.  http://www.gartner.com/technology/reprints.do?id=1- 23A415Q&ct=141020&st=sb What does the Gartner say? PostgreSQL Migration Team 14-Jul-20159
  • 10. What does the Gartner say? PostgreSQL Migration Team 14-Jul-201510
  • 11.  Strategic planning assumptions  By 2017, the "NoSQL" label will cease to distinguish DBMSs, which will reduce its value and result in it falling out of use.  By 2017, all leading operational DBMSs will offer multiple data models, relational and NoSQL, in a single platform.  EnterpriseDB (i.e. PostgreSQL) has higher Completeness of Vision and Ability to Execute What does the Gartner say? PostgreSQL Migration Team 14-Jul-201511
  • 12.  The MySQL™ software delivers a very fast, multi- threaded, multi-user, and robust SQL (Structured Query Language) database server. (https://dev.mysql.com/)  MySQL implements a subset of ANSI SQL and features that are used by simple and (typically) ORM-based applications.  PostgreSQL delivers a fast, robust implementation of the ANSI SQL standard with NoSQL*, geospatial, row-level-security and partitioning support. It is also extensible with multiple programming languages. * JSON, XML, key-value-pair, limited graph queries and natural language full-text search. Different missions and visions: PostgreSQL Migration Team 14-Jul-201512
  • 14.  Oracle owns MySQL, which effectively means it will never have a feature set that competes with Oracle RDBMS.  Not everyone wants their database to support Larry’s private island and America’s Cup Business reasons … PostgreSQL Migration Team 14-Jul-201514
  • 15.  PostgreSQL’s mission is bigger than MySQL’s and so it does more  Full implementation of ANSI SQL (vs. MySQL subset)  Native NoSQL support including JSON, XML, key-value- pair and recursive (graph) queries. Only Oracle RDBMS has these.  GeoSpatial support with PostGIS  Support for common language procedural extensions Java, Python, Perl, Program/R  Application-customized data types including IPv4/6, range, array and ENUM Technical reasons … PostgreSQL Migration Team 14-Jul-201515
  • 16.  Analytic functions (a.k.a. Windowing functions)  Calculate moving average and similar statistics that can only be done in the application tier with MySQL How does that impact my mission? PostgreSQL Migration Team 14-Jul-201516
  • 17.  Find events within a user-select box, IP-location, nearest event(s), event(s) within radius  Use internal mapping and related services … for free GeoSpatial data PostgreSQL Migration Team 14-Jul-201517
  • 18.  Validate IP’s on input (hard to do with IPv6)  Find IPs within subnet (CIDR notation) or range  Associate array’s of ports and/or MAC addresses with IP(s)  PostgreSQL lets you think like a router when working with IPs rather than thinking like a parser IPv4 / 6 data types (+ MAC) PostgreSQL Migration Team 14-Jul-201518
  • 19.  Beyond the Relational model for …  Large data sets that need to be stored efficiently  Focus on queries, relationships and analysis (vs. transactions)  Read-only data  Does any of this sound applicable to our domain? Arrays PostgreSQL Migration Team 14-Jul-201519
  • 20.  Similar to Apache SOLR, but automatically updated and part of the database  Not as fast or full-featured  Ranked results base on search-term frequency weighted for document size. Similar to TF/IDF.  Highlighted surrounding phrases Full-text search w/ranked results PostgreSQL Migration Team 14-Jul-201520
  • 21.  Leverage the skills your team has today (any) Procedural language support PostgreSQL Migration Team 14-Jul-201521
  • 22.  Per Gartner – “By 2017, all leading operational DBMSs will offer multiple data models, relational and NoSQL, in a single platform.” (PostgreSQL does today)  JSON support similar to MongoDB, but integrated with the rest of your data NoSQL support … JSON & XML PostgreSQL Migration Team 14-Jul-201522
  • 23.  HSTORE data type stores key-value pairs as a column in a relational table NoSQL support … key value pair PostgreSQL Migration Team 14-Jul-201523
  • 24.  PostgreSQL recursive* queries support graphs.* “recursive” is the ANSI-SQL term.  Similar functionality to Neo4J and SPARQL, but on smaller data sets NoSQL support … graph data PostgreSQL Migration Team 14-Jul-201524
  • 25.  PostgreSQL and MySQL are both good products for simple, pure-relational applications using a subset of ANSI-SQL  They have similar performance & tools  Both are free and “fremium”  But MySQL will never have the features of Oracle RDBMS … because Larry Ellison won’t allow it.  MariaDB has FOSS active development, but it is a fork – not MySQL Summary PostgreSQL Migration Team 14-Jul-201525
  • 26.  Consider PostgreSQL if, over the lifespan of your project, you ever envision …  Using JSON, XML, key-value pair or other NoSQL data  Validating, storing or analyzing IPv4/6 or MAC addresses  Points on a map, selecting records based on a bounding-box, searching for nearby/far-away records or looking for communication that crosses a geographic boundary  Performing moving averages, Excel pivot-table queries or advanced statistics  Leveraging your team’s Java, Python, Perl, TCL or Program /R skills  Using (simple) graph analysis to find a path between records Summary PostgreSQL Migration Team 14-Jul-201526
  • 27.  Contact any member of the PostgreSQL Migration Team  James Hanson, Chris Fort and Russell Janusz  Connect to our YUM repository (or GUI installer) … and go  Contact Corporate Hosting … and let them host your PostgreSQL database and VM  Contact Aaron Pestel or James Hanson for capability and license information on EnterpriseDB OK great … how do I move forward? PostgreSQL Migration Team 14-Jul-201527