PostgreSQL to MySQL A DBA's Perspective. Patrick
|
|
- George Sullivan
- 6 years ago
- Views:
Transcription
1 PostgreSQL to MySQL A DBA's Perspective Patrick
2 Yelp s Mission Connecting people with great local businesses.
3 My Database Experience Started using Postgres 7 years ago Postgres 8.4 (released in 2009) 50+ TB OLAP database Started using MySQL 11 months, 22 days, and 2 hours ago First time using another RDBMS in a professional setting
4 Replication Schema Changes Query Plans Indexing Topics I'll Cover Today
5 Topics I Won't Cover Today
6 There is more that unites us than divides us.
7 MySQL at Yelp Monolithic LAMP stack dating back to 2004 Moving features and data out from the monolith and into services Hundreds of DBs/Schemas 15+ Schema Changes each week Achieved by using pt-osc 400 engineers with 100 interns, and 4 DBAs
8 MySQL at Yelp MySQL 5.6 Statement based replication Replication trees that are up to 5 nodes deep One "intermediate master" per datacenter Vertical sharding at the database level, no horizontal sharding of data across multiple machines No site downtime allowed for database maintenance Online re-mastering of a database cluster
9 MySQL at Yelp: Surprises No physical sharding or partitioning? Largest single table is 4B+ rows The number of schema changes we do each week Nested replication hierarchy MySQL replication in general
10 Postgres at Yelp Used by both Eat24 and Yelp Reservations Postgres 9.5 and 9.6 Monolithic data, very few services or service databases
11 Replication
12 Replication: Postgres Streaming replication Replicas are byte-for-byte copies of the master database Replicas are fully read-only hot_standby_feedback Write-Ahead Log (WAL) is used for both replication and crash recovery
13 Replication: MySQL Statement based replication Each insert/update/delete is logged in the binary logs after it is committed Replica pull changes from the binary logs and runs the same SQL statement No other communication between master and replica Allows for awesome architecture designs where replicas have partial data, or different indexes
14 Replication: Lessons Learned MySQL replicas only receive transaction after it has been committed on the master Long running statements (like update on non-indexed WHERE clauses) can take forever on the master, and then take forever on each replica
15 Replication: Lessons Learned MySQL Statement Based vs Postgres replication delay Frequent cause in MySQL: Large insert/update/deletes on the master database being ran by all replicas Frequent cause in Postgres: Long running selects on the replica locking rows/tables that need to be updated
16 Replication: Lessons Learned Long running transactions on the replica in Postgres cause the master to slow down due to hot_standby_feedback Long running transaction on the replica in MySQL cause replication delay on the replica
17 Schema Changes
18 Schema Changes: Postgres Most changes can just be performed with minimal table locking or replication concerns This is because Postgres is using WAL replication, so on-disk changes are shipped over to the replicas while they're happening on the master
19 Schema Changes: Postgres Exceptions to this include: Adding a column with a default value Changing a column type Adding an index (Use CREATE INDEX CONCURRENTLY instead)
20 Schema Changes: MySQL Tools like the pt-online-schema-change or gh-ost are required for safe changes during online operations MySQL does have some online schema changes, but we chose to use pt-osc for tables over 100MB
21 Schema Changes: MySQL This is especially true if using statement based replication as the ALTER statement will only be shipped to replicas after it completes on the master See Jenni Snyder's PL16 Talk "Let Robots Manage your Schema (without destroying all humans)"
22 Schema Changes: Lessons Learned There's no one correct way to do schema changes Pick the tool and method that are best for your environment
23 Query Plans
24 create table species_groups ( id_no serial PRIMARY KEY, species varchar(64) NOT NULL ); create table doctors ( id_no serial PRIMARY KEY, name varchar(64) NOT NULL, hire_date date NOT NULL, termination_date date ); create table doctors_species_groups ( doctor_no integer, species_groups_no );
25 select t1.name, t3.species FROM doctors t1 INNER JOIN doctors_species_groups t2 ON t1.id_no = t2.doctor_no INNER JOIN species_groups t3 on t2.species_groups_no = t3.id_no ;
26 [test]=# explain select t1.name, t3.species FROM doctors t1 INNER JOIN doctors_species_groups t2 ON t1.id_no = t2.doctor_no INNER JOIN species_groups t3 on t2.species_groups_no = t3.id_no; QUERY PLAN Hash Join (cost= rows=143 width=152) Hash Cond: (t2.species_groups_no = t3.id_no) -> Hash Join (cost= rows=143 width=10) Hash Cond: (t1.id_no = t2.doctor_no) -> Seq Scan on doctors t1 (cost= rows=1000 width=10) -> Hash (cost= rows=143 width=8) -> Seq Scan on doctors_species_groups t2 (cost= rows=143 width=8) -> Hash (cost= rows=450 width=150) -> Seq Scan on species_groups t3 (cost= rows=450 width=150) (9 rows) Time: ms
27 [test]=# explain analyze select t1.name, t3.species FROM doctors t1 INNER JOIN doctors_species_groups t2 ON t1.id_no = t2.doctor_no INNER JOIN species_groups t3 on t2.species_groups_no = t3.id_no; QUERY PLAN Hash Join (cost= rows=143 width=152) (actual time= rows=0 loops=1) Hash Cond: (t2.species_groups_no = t3.id_no) -> Hash Join (cost= rows=143 width=10) (actual time= rows=143 loops=1) Hash Cond: (t1.id_no = t2.doctor_no) -> Seq Scan on doctors t1 (cost= rows=1000 width=10) (actual time= rows=1000 loops=1) -> Hash (cost= rows=143 width=8) (actual time= rows=143 loops=1) Buckets: 1024 Batches: 1 Memory Usage: 14kB -> Seq Scan on doctors_species_groups t2 (cost= rows=143 width=8) (actual time= rows=143 loops=1) -> Hash (cost= rows=450 width=150) (actual time= rows=6 loops=1) Buckets: 1024 Batches: 1 Memory Usage: 9kB -> Seq Scan on species_groups t3 (cost= rows=450 width=150) (actual time= rows=6 loops=1) Planning time: ms Execution time: ms (13 rows)
28 [test]=# explain (analyze, buffers) select t1.name, t3.species FROM doctors t1 INNER JOIN doctors_species_groups t2 ON t1.id_no = t2.doctor_no INNER JOIN species_groups t3 on t2.species_groups_no = t3.id_no; QUERY PLAN Hash Join (cost= rows=143 width=152) (actual time= rows=0 loops=1) Hash Cond: (t2.species_groups_no = t3.id_no) Buffers: shared hit=8 -> Hash Join (cost= rows=143 width=10) (actual time= rows=143 loops=1) Hash Cond: (t1.id_no = t2.doctor_no) Buffers: shared hit=7 -> Seq Scan on doctors t1 (cost= rows=1000 width=10) (actual time= rows=1000 loops=1) Buffers: shared hit=6 -> Hash (cost= rows=143 width=8) (actual time= rows=143 loops=1) Buckets: 1024 Batches: 1 Memory Usage: 14kB Buffers: shared hit=1 -> Seq Scan on doctors_species_groups t2 (cost= rows=143 width=8) (actual time= rows=143 loops=1) Buffers: shared hit=1 -> Hash (cost= rows=450 width=150) (actual time= rows=6 loops=1) Buckets: 1024 Batches: 1 Memory Usage: 9kB Buffers: shared hit=1
29 mysql> explain select t1.name, t3.species FROM doctors t1 INNER JOIN doctors_species_groups t2 ON t1.id_no = t2.doctor_no INNER JOIN species_groups t3 on t2.species_groups_no = t3.id_no; id select_type table partitions type possible_keys key key_len ref rows filtered Extra SIMPLE t2 NULL ALL NULL NULL NULL NULL Using where 1 SIMPLE t3 NULL eq_ref PRIMARY,id_no PRIMARY 8 test.t2.species_groups_no Using where 1 SIMPLE t1 NULL eq_ref PRIMARY,id_no PRIMARY 8 test.t2.doctor_no Using where rows in set, 1 warning (0.00 sec)
30 mysql> explain FORMAT=JSON select t1.name, t3.species FROM doctors t1 INNER JOIN doctors_species_groups t2 ON t1.id_no = t2.doctor_no INNER JOIN species_groups t3 on t2.species_groups_no = t3.id_no; { "query_block": { "select_id": 1, "cost_info": { "query_cost": "261.00" }, "nested_loop": [ { "table": { "table_name": "t2", "access_type": "ALL", "rows_examined_per_scan": 100, "rows_produced_per_join": 100, "filtered": "100.00", "cost_info": { "read_cost": "1.00", "eval_cost": "20.00", "prefix_cost": "21.00", "data_read_per_join": "1K" }, "used_columns": [ "doctor_no", "species_groups_no" ], "attached_condition": "((`test`.`t2`.`species_groups_no` is not null) and (`test`.`t2`.`doctor_no` is not null))" } }, { "table": { "table_name": "t3", "access_type": "eq_ref", "possible_keys": [ "PRIMARY", "id_no" ], "key": "PRIMARY", "used_key_parts": [ "id_no" ], "key_length": "8", "ref": [ "test.t2.species_groups_no" ], "rows_examined_per_scan": 1, "rows_produced_per_join": 100, "filtered": "100.00",
31 Query Plans: Lessons Learned Learning to read query plans correctly is hard for any database MySQL: Baron Schwartz's "EXPLAIN Demystified" Postgres: Josh Berkus "Explain Explained"
32 Index Types and Indexing Strategies
33 Indexes: Postgres B-tree GiST SP-GiST GIN BRIN Hash
34 Indexes: Postgres Functional Indexing Useful to speed up particularly complex queries Indexing on the WHERE clause of a given query CREATE INDEX order_not_completed ON orders USING btree (restaurant_id, creation_date) WHERE ((paid = 0) AND (payment_id IS NULL))
35
36 Indexes: Postgres You will often find more indexes than the number of columns in a table Postgres is already optimized for rewriting data all the time, which is why the cost of having so many indexes isn't cumbersome
37 Indexes: MySQL InnoDB has clustered indexing Long primary keys are bad and affect performance on all indexes because of clustered indexing
38 Community Postgres doesn't have the equivalent of the MySQL Utilities, percona toolkit, or just searching GitHub for MySQL While there are big Postgres consulting companies there is no one company driving the major changes No official bug tracker in Postgres Almost all communication is done on the official Postgres lists
39 Thing I Miss from Postgres Flexible Indexing Transactional DDL In-database online schema changes WAL-style replication
40 Things I wish Postgres had from MySQL Sub-millisecond, primary key selects on large tables Community support Replication flexibility
41 Questions?
42 engineeringblog.yelp.com github.com/yelp
43 We're Hiring!
Optimizing Queries with EXPLAIN
Optimizing Queries with EXPLAIN Sheeri Cabral Senior Database Administrator Twitter: @sheeri What is EXPLAIN? SQL Extension Just put it at the beginning of your statement Can also use DESC or DESCRIBE
More informationMySQL Query Tuning 101. Sveta Smirnova, Alexander Rubin April, 16, 2015
MySQL Query Tuning 101 Sveta Smirnova, Alexander Rubin April, 16, 2015 Agenda 2 Introduction: where to find slow queries Indexes: why and how do they work All about EXPLAIN More tools Where to find more
More informationTired of MySQL Making You Wait? Alexander Rubin, Principal Consultant, Percona Janis Griffin, Database Evangelist, SolarWinds
Tired of MySQL Making You Wait? Alexander Rubin, Principal Consultant, Percona Janis Griffin, Database Evangelist, SolarWinds Who Am I? Senior DBA / Performance Evangelist for Solarwinds Janis.Griffin@solarwinds.com
More informationMySQL 5.6: Advantages in a Nutshell. Peter Zaitsev, CEO, Percona Percona Technical Webinars March 6, 2013
MySQL 5.6: Advantages in a Nutshell Peter Zaitsev, CEO, Percona Percona Technical Webinars March 6, 2013 About Presentation Brief Overview Birds eye view of features coming in 5.6 Mainly documentation
More informationIntroduction to MySQL NDB Cluster. Yves Trudeau Ph. D. Percona Live DC/January 2012
Introduction to MySQL NDB Cluster Yves Trudeau Ph. D. Percona Live DC/January 2012 Agenda What is NDB Cluster? How MySQL uses NDB Cluster Good use cases Bad use cases Example of tuning What is NDB cluster?
More informationSQL QUERY EVALUATION. CS121: Relational Databases Fall 2017 Lecture 12
SQL QUERY EVALUATION CS121: Relational Databases Fall 2017 Lecture 12 Query Evaluation 2 Last time: Began looking at database implementation details How data is stored and accessed by the database Using
More informationCopyright 2017, Oracle and/or its aff iliates. All rights reserved.
Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment
More informationOKC MySQL Users Group
OKC MySQL Users Group OKC MySQL Discuss topics about MySQL and related open source RDBMS Discuss complementary topics (big data, NoSQL, etc) Help to grow the local ecosystem through meetups and events
More informationMySQL 8.0 Optimizer Guide
MySQL 8.0 Optimizer Guide Morgan Tocker MySQL Product Manager (Server) Copyright 2016, 2017, Oracle and/or its its affiliates. All All rights rights reserved. Safe Harbor Statement The following is intended
More informationLet Robots Manage Your Schema Without Killing All Humans. Jenni
Let Robots Manage Your Schema Without Killing All Humans Jenni Snyder @jcsuperstar Yelp s Mission Connecting people with great local businesses. Yelp Stats As of Q4 2015 86M 95M 70% 32 Database Engineering
More informationTroubleshooting Slow Queries. Sveta Smirnova Principal Support Engineer April, 28, 2016
Troubleshooting Slow Queries Sveta Smirnova Principal Support Engineer April, 28, 2016 Table of Contents Before we start What affects query execution EXPLAIN: how to find out how optimizer works Data matters:
More informationIf Only I Could Find My Databases-Service Discovery with SmartStack and MySQL. Susanne Lehmann, Yelp
If Only I Could Find My Databases-Service Discovery with SmartStack and MySQL Susanne Lehmann, Yelp susanne@yelp.com Me I ve been a DBA for 16 years I ve been working with all kinds of relational and NoSQL
More informationWriting High Performance SQL Statements. Tim Sharp July 14, 2014
Writing High Performance SQL Statements Tim Sharp July 14, 2014 Introduction Tim Sharp Technical Account Manager Percona since 2013 16 years working with Databases Optimum SQL Performance Schema Indices
More informationWhen and How to Take Advantage of New Optimizer Features in MySQL 5.6. Øystein Grøvlen Senior Principal Software Engineer, MySQL Oracle
When and How to Take Advantage of New Optimizer Features in MySQL 5.6 Øystein Grøvlen Senior Principal Software Engineer, MySQL Oracle Program Agenda Improvements for disk-bound queries Subquery improvements
More informationThere And Back Again
There And Back Again Databases At Uber Evan Klitzke October 4, 2016 Outline Background MySQL To Postgres Connection Scalability Write Amplification/Replication Miscellaneous Other Things Databases at Uber
More informationCovering indexes. Stéphane Combaudon - SQLI
Covering indexes Stéphane Combaudon - SQLI Indexing basics Data structure intended to speed up SELECTs Similar to an index in a book Overhead for every write Usually negligeable / speed up for SELECT Possibility
More informationOptimizer Standof. MySQL 5.6 vs MariaDB 5.5. Peter Zaitsev, Ovais Tariq Percona Inc April 18, 2012
Optimizer Standof MySQL 5.6 vs MariaDB 5.5 Peter Zaitsev, Ovais Tariq Percona Inc April 18, 2012 Thank you Ovais Tariq Ovais Did a lot of heavy lifing for this presentation He could not come to talk together
More informationPractical MySQL indexing guidelines
Practical MySQL indexing guidelines Percona Live October 24th-25th, 2011 London, UK Stéphane Combaudon stephane.combaudon@dailymotion.com Agenda Introduction Bad indexes & performance drops Guidelines
More informationJargons, Concepts, Scope and Systems. Key Value Stores, Document Stores, Extensible Record Stores. Overview of different scalable relational systems
Jargons, Concepts, Scope and Systems Key Value Stores, Document Stores, Extensible Record Stores Overview of different scalable relational systems Examples of different Data stores Predictions, Comparisons
More informationIndexes - What You Need to Know
Indexes - What You Need to Know http://www.percona.com/training/ 2011-2017 Percona, Inc. 1 / 53 Indexes - Need to Know QUERY PLANNING 2011-2017 Percona, Inc. 2 / 53 About This Chapter The number one goal
More information1Z MySQL 5 Database Administrator Certified Professional Exam, Part II Exam.
Oracle 1Z0-874 MySQL 5 Database Administrator Certified Professional Exam, Part II Exam TYPE: DEMO http://www.examskey.com/1z0-874.html Examskey Oracle 1Z0-874 exam demo product is here for you to test
More informationOracle 1Z MySQL 5.6 Database Administrator. Download Full Version :
Oracle 1Z0-883 MySQL 5.6 Database Administrator Download Full Version : http://killexams.com/pass4sure/exam-detail/1z0-883 D. The mysqld binary was not compiled with SSL support. E. The server s SSL certificate
More informationQuery Optimization Percona, Inc. 1 / 74
Query Optimization http://www.percona.com/training/ 2011-2017 Percona, Inc. 1 / 74 Table of Contents 1. Query Planning 3. Composite Indexes 2. Explaining the EXPLAIN 4. Kitchen Sink 2011-2017 Percona,
More informationDATABASE PERFORMANCE AND INDEXES. CS121: Relational Databases Fall 2017 Lecture 11
DATABASE PERFORMANCE AND INDEXES CS121: Relational Databases Fall 2017 Lecture 11 Database Performance 2 Many situations where query performance needs to be improved e.g. as data size grows, query performance
More informationMongoDB and Mysql: Which one is a better fit for me? Room 204-2:20PM-3:10PM
MongoDB and Mysql: Which one is a better fit for me? Room 204-2:20PM-3:10PM About us Adamo Tonete MongoDB Support Engineer Agustín Gallego MySQL Support Engineer Agenda What are MongoDB and MySQL; NoSQL
More informationWhat s New in MySQL 5.7
What s New in MySQL 5.7 Mario Beck MySQL EMEA Presales Manager Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purposes only, and
More informationMastering the art of indexing
Mastering the art of indexing Yoshinori Matsunobu Lead of MySQL Professional Services APAC Sun Microsystems Yoshinori.Matsunobu@sun.com 1 Table of contents Speeding up Selects B+TREE index structure Index
More informationTools and Techniques for Index Design. Bill Karwin, Percona Inc.
Tools and Techniques for Index Design Bill Karwin, Percona Inc. It s About Performance What s the most frequent recommendation in database performance audits? What s the easiest way to speed up SQL queries,
More informationMySQL Indexing. Best Practices for MySQL 5.6. Peter Zaitsev CEO, Percona MySQL Connect Sep 22, 2013 San Francisco,CA
MySQL Indexing Best Practices for MySQL 5.6 Peter Zaitsev CEO, Percona MySQL Connect Sep 22, 2013 San Francisco,CA For those who Does not Know Us Percona Helping Businesses to be Successful with MySQL
More informationPostgreSQL Query Optimization. Step by step techniques. Ilya Kosmodemiansky
PostgreSQL Query Optimization Step by step techniques Ilya Kosmodemiansky (ik@) Agenda 2 1. What is a slow query? 2. How to chose queries to optimize? 3. What is a query plan? 4. Optimization tools 5.
More informationScaling Without Sharding. Baron Schwartz Percona Inc Surge 2010
Scaling Without Sharding Baron Schwartz Percona Inc Surge 2010 Web Scale!!!! http://www.xtranormal.com/watch/6995033/ A Sharding Thought Experiment 64 shards per proxy [1] 1 TB of data storage per node
More informationMySQL 5.1 Past, Present and Future MySQL UC 2006 Santa Clara, CA
MySQL 5.1 Past, Present and Future jan@mysql.com MySQL UC 2006 Santa Clara, CA Abstract Last year at the same place MySQL presented the 5.0 release introducing Stored Procedures, Views and Triggers to
More informationMySQL Performance Optimization
P R A C T I C A L MySQL Performance Optimization A hands-on, business-case-driven guide to understanding MySQL query parameter tuning and database performance optimization. With the increasing importance
More informationThe Future of Postgres Sharding
The Future of Postgres Sharding BRUCE MOMJIAN This presentation will cover the advantages of sharding and future Postgres sharding implementation requirements. Creative Commons Attribution License http://momjian.us/presentations
More informationLecture 19 Query Processing Part 1
CMSC 461, Database Management Systems Spring 2018 Lecture 19 Query Processing Part 1 These slides are based on Database System Concepts 6 th edition book (whereas some quotes and figures are used from
More informationPractical Performance Tuning using Digested SQL Logs. Bob Burgess Salesforce Marketing Cloud
Practical Performance Tuning using Digested SQL Logs Bob Burgess Salesforce Marketing Cloud Who?! Database Architect! Salesforce Marketing Cloud (Radian6 & Buddy Media stack) Why?! I can t be the only
More informationHow to Use JSON in MySQL Wrong
How to Use JSON in MySQL Wrong Bill Karwin, Square Inc. October, 2018 1 Me Database Developer at Square Inc. MySQL Quality Contributor Author of SQL Antipatterns: Avoiding the Pitfalls of Database Programming
More informationThe MySQL Query Cache
The MySQL Query Cache Baron Schwartz Percona Inc -2- The Roadmap How it works What it isn't Myths How it uses memory Monitoring and status Configuration Trivia (how it works with InnoDB) What is the Query
More informationbig picture parallel db (one data center) mix of OLTP and batch analysis lots of data, high r/w rates, 1000s of cheap boxes thus many failures
Lecture 20 -- 11/20/2017 BigTable big picture parallel db (one data center) mix of OLTP and batch analysis lots of data, high r/w rates, 1000s of cheap boxes thus many failures what does paper say Google
More informationScaling the Yelp s logging pipeline with Apache Kafka. Enrico
Scaling the Yelp s logging pipeline with Apache Kafka Enrico Canzonieri enrico@yelp.com @EnricoC89 Yelp s Mission Connecting people with great local businesses. Yelp Stats As of Q1 2016 90M 102M 70% 32
More informationUse Cases for Partitioning. Bill Karwin Percona, Inc
Use Cases for Partitioning Bill Karwin Percona, Inc. 2011-02-16 1 Why Use Cases?! Anyone can read the reference manual: http://dev.mysql.com/doc/refman/5.1/en/partitioning.html! This talk is about when
More information<Insert Picture Here> Upcoming Changes in MySQL 5.7 Morgan Tocker, MySQL Community Manager
Upcoming Changes in MySQL 5.7 Morgan Tocker, MySQL Community Manager http://www.tocker.ca/ Safe Harbor Statement The following is intended to outline our general product direction.
More informationImprovements in MySQL 5.5 and 5.6. Peter Zaitsev Percona Live NYC May 26,2011
Improvements in MySQL 5.5 and 5.6 Peter Zaitsev Percona Live NYC May 26,2011 State of MySQL 5.5 and 5.6 MySQL 5.5 Released as GA December 2011 Percona Server 5.5 released in April 2011 Proven to be rather
More informationSQL and Semi-structured data with PostgreSQL
CS-E4610 Modern Database Systems 05.01.2018-05.04.2018 Tutorial 1 SQL and Semi-structured data with PostgreSQL FREDERICK AYALA-GÓMEZ PHD STUDENT I N COMPUTER SCIENCE, ELT E UNIVERSITY VISITING R ESEA RCHER,
More informationScale out Read Only Workload by sharing data files of InnoDB. Zhai weixiang Alibaba Cloud
Scale out Read Only Workload by sharing data files of InnoDB Zhai weixiang Alibaba Cloud Who Am I - My Name is Zhai Weixiang - I joined in Alibaba in 2011 and has been working on MySQL since then - Mainly
More informationQuery Optimizer MySQL vs. PostgreSQL
Percona Live, Frankfurt (DE), 7 November 2018 Christian Antognini @ChrisAntognini antognini.ch/blog BASEL BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA HAMBURG COPENHAGEN LAUSANNE MUNICH STUTTGART
More informationMySQL Database Scalability
MySQL Database Scalability Nextcloud Conference 2016 TU Berlin Oli Sennhauser Senior MySQL Consultant at FromDual GmbH oli.sennhauser@fromdual.com 1 / 14 About FromDual GmbH Support Consulting remote-dba
More informationTarget Practice. A Workshop in Tuning MySQL Queries OSCON Jay Pipes Community Relations Manager, North America MySQL, Inc.
Target Practice A Workshop in Tuning MySQL Queries OSCON 2007 Jay Pipes Community Relations Manager, North America MySQL, Inc. Setup Download materials and MySQL Community Server Download workshop materials
More informationMajor Features: Postgres 9.5
Major Features: Postgres 9.5 BRUCE MOMJIAN POSTGRESQL is an open-source, full-featured relational database. This presentation gives an overview of the Postgres 9.5 release. Creative Commons Attribution
More informationOral Questions and Answers (DBMS LAB) Questions & Answers- DBMS
Questions & Answers- DBMS https://career.guru99.com/top-50-database-interview-questions/ 1) Define Database. A prearranged collection of figures known as data is called database. 2) What is DBMS? Database
More informationQuery Optimizer MySQL vs. PostgreSQL
Percona Live, Santa Clara (USA), 24 April 2018 Christian Antognini @ChrisAntognini antognini.ch/blog BASEL BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA HAMBURG COPENHAGEN LAUSANNE MUNICH
More informationThe MariaDB/MySQL Query Executor In-depth. Presented by: Timour Katchaounov Optimizer team: Igor Babaev, Sergey Petrunia, Timour Katchaounov
The MariaDB/MySQL Query Executor In-depth Presented by: Timour Katchaounov Optimizer team: Igor Babaev, Sergey Petrunia, Timour Katchaounov Outline What's IN Query engine architecture Execution model Representation
More informationState of MariaDB. Igor Babaev Notice: MySQL is a registered trademark of Sun Microsystems, Inc.
State of MariaDB Igor Babaev igor@askmonty.org New features in MariaDB 5.2 New engines: OQGRAPH, SphinxSE Virtual columns Extended User Statistics Segmented MyISAM key cache Pluggable Authentication Storage-engine-specific
More informationpgconf.de 2018 Berlin, Germany Magnus Hagander
A look at the Elephants Trunk PostgreSQL 11 pgconf.de 2018 Berlin, Germany Magnus Hagander magnus@hagander.net Magnus Hagander Redpill Linpro Principal database consultant PostgreSQL Core Team member Committer
More informationMySQL Indexing. Best Practices. Peter Zaitsev, CEO Percona Inc August 15, 2012
MySQL Indexing Best Practices Peter Zaitsev, CEO Percona Inc August 15, 2012 You ve Made a Great Choice! Understanding indexing is crucial both for Developers and DBAs Poor index choices are responsible
More informationSP-GiST a new indexing framework for PostgreSQL
SP-GiST a new indexing framework for PostgreSQL Space-partitioning trees in PostgreSQL Oleg Bartunov, Teodor Sigaev Moscow University PostgreSQL extensibility The world's most advanced open source database
More informationAdvanced query optimization techniques on large queries. Peter Boros Percona Webinar
Advanced query optimization techniques on large queries Peter Boros Percona Webinar Agenda Showing the title slide Going through this agenda Prerequisites Case study #1 Case study #2 Case study #3 Case
More informationKathleen Durant PhD Northeastern University CS Indexes
Kathleen Durant PhD Northeastern University CS 3200 Indexes Outline for the day Index definition Types of indexes B+ trees ISAM Hash index Choosing indexed fields Indexes in InnoDB 2 Indexes A typical
More informationAzure-persistence MARTIN MUDRA
Azure-persistence MARTIN MUDRA Storage service access Blobs Queues Tables Storage service Horizontally scalable Zone Redundancy Accounts Based on Uri Pricing Calculator Azure table storage Storage Account
More informationIT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including:
IT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including: 1. IT Cost Containment 84 topics 2. Cloud Computing Readiness 225
More informationITS. MySQL for Database Administrators (40 Hours) (Exam code 1z0-883) (OCP My SQL DBA)
MySQL for Database Administrators (40 Hours) (Exam code 1z0-883) (OCP My SQL DBA) Prerequisites Have some experience with relational databases and SQL What will you learn? The MySQL for Database Administrators
More information<Insert Picture Here> Looking at Performance - What s new in MySQL Workbench 6.2
Looking at Performance - What s new in MySQL Workbench 6.2 Mario Beck MySQL Sales Consulting Manager EMEA The following is intended to outline our general product direction. It is
More informationAdvanced MySQL Query Tuning
Advanced MySQL Query Tuning Alexander Rubin July 21, 2013 About Me My name is Alexander Rubin Working with MySQL for over 10 years Started at MySQL AB, then Sun Microsystems, then Oracle (MySQL Consulting)
More informationAutomatic MySQL Schema Management with Skeema. Evan Elias Percona Live, April 2017
Automatic MySQL Schema Management with Skeema Evan Elias Percona Live, April 2017 What is Schema Management? Organize table schemas in a repo Execution of all DDL, on the correct MySQL instances, with
More informationMySQL 101. Designing effective schema for InnoDB. Yves Trudeau April 2015
MySQL 101 Designing effective schema for InnoDB Yves Trudeau April 2015 About myself : Yves Trudeau Principal architect at Percona since 2009 With MySQL then Sun, 2007 to 2009 Focus on MySQL HA and distributed
More informationNext-Generation Parallel Query
Next-Generation Parallel Query Robert Haas & Rafia Sabih 2013 EDB All rights reserved. 1 Overview v10 Improvements TPC-H Results TPC-H Analysis Thoughts for the Future 2017 EDB All rights reserved. 2 Parallel
More informationMyRocks deployment at Facebook and Roadmaps. Yoshinori Matsunobu Production Engineer / MySQL Tech Lead, Facebook Feb/2018, #FOSDEM #mysqldevroom
MyRocks deployment at Facebook and Roadmaps Yoshinori Matsunobu Production Engineer / MySQL Tech Lead, Facebook Feb/2018, #FOSDEM #mysqldevroom Agenda MySQL at Facebook MyRocks overview Production Deployment
More informationNoVA MySQL October Meetup. Tim Callaghan VP/Engineering, Tokutek
NoVA MySQL October Meetup TokuDB and Fractal Tree Indexes Tim Callaghan VP/Engineering, Tokutek 2012.10.23 1 About me, :) Mark Callaghan s lesser-known but nonetheless smart brother. [C. Monash, May 2010]
More informationCopyright 2014, Oracle and/or its affiliates. All rights reserved.
Basic MySQL Troubleshooting for Oracle DBAs Sveta Smirnova Senior Principal Technical Support Engineer MySQL Support September 29, 2014 Safe Harbor Statement The following is intended to outline our general
More informationIntroduction to MySQL Cluster: Architecture and Use
Introduction to MySQL Cluster: Architecture and Use Arjen Lentz, MySQL AB (arjen@mysql.com) (Based on an original paper by Stewart Smith, MySQL AB) An overview of the MySQL Cluster architecture, what's
More informationMySQL Database Administrator Training NIIT, Gurgaon India 31 August-10 September 2015
MySQL Database Administrator Training Day 1: AGENDA Introduction to MySQL MySQL Overview MySQL Database Server Editions MySQL Products MySQL Services and Support MySQL Resources Example Databases MySQL
More informationT-sql Check If Index Exists Information_schema
T-sql Check If Index Exists Information_schema Is there another way to check if table/column exists in SQL Server? indexes won't pick them up, causing it to use the Clustered Index whenever a new column
More informationMTA Database Administrator Fundamentals Course
MTA Database Administrator Fundamentals Course Session 1 Section A: Database Tables Tables Representing Data with Tables SQL Server Management Studio Section B: Database Relationships Flat File Databases
More informationPS2 out today. Lab 2 out today. Lab 1 due today - how was it?
6.830 Lecture 7 9/25/2017 PS2 out today. Lab 2 out today. Lab 1 due today - how was it? Project Teams Due Wednesday Those of you who don't have groups -- send us email, or hand in a sheet with just your
More informationEternal Story on Temporary Objects
Eternal Story on Temporary Objects Dmitri V. Korotkevitch http://aboutsqlserver.com About Me 14+ years of experience working with Microsoft SQL Server Microsoft SQL Server MVP Microsoft Certified Master
More informationColumn Stores vs. Row Stores How Different Are They Really?
Column Stores vs. Row Stores How Different Are They Really? Daniel J. Abadi (Yale) Samuel R. Madden (MIT) Nabil Hachem (AvantGarde) Presented By : Kanika Nagpal OUTLINE Introduction Motivation Background
More informationPerformance improvements in MySQL 5.5
Performance improvements in MySQL 5.5 Percona Live Feb 16, 2011 San Francisco, CA By Peter Zaitsev Percona Inc -2- Performance and Scalability Talk about Performance, Scalability, Diagnostics in MySQL
More informationDiscuss physical db design and workload What choises we have for tuning a database How to tune queries and views
TUNING AND DB DESIGN 1 GOALS Discuss physical db design and workload What choises we have for tuning a database How to tune queries and views 2 STEPS IN DATABASE DESIGN Requirements Analysis user needs;
More informationReplication features of 2011
FOSDEM 2012 Replication features of 2011 What they were How to get them How to use them Sergey Petrunya MariaDB MySQL Replication in 2011: overview Notable events, chronologically: MySQL 5.5 GA (Dec 2010)
More informationMobile MOUSe MTA DATABASE ADMINISTRATOR FUNDAMENTALS ONLINE COURSE OUTLINE
Mobile MOUSe MTA DATABASE ADMINISTRATOR FUNDAMENTALS ONLINE COURSE OUTLINE COURSE TITLE MTA DATABASE ADMINISTRATOR FUNDAMENTALS COURSE DURATION 10 Hour(s) of Self-Paced Interactive Training COURSE OVERVIEW
More informationMigrating Oracle Databases To Cassandra
BY UMAIR MANSOOB Why Cassandra Lower Cost of ownership makes it #1 choice for Big Data OLTP Applications. Unlike Oracle, Cassandra can store structured, semi-structured, and unstructured data. Cassandra
More informationMining for insight. Osma Ahvenlampi, CTO, Sulake Implementing business intelligence for Habbo
Mining for insight Osma Ahvenlampi, CTO, Sulake Implementing business intelligence for Habbo Virtual world 3 Social Play 4 Habbo Countries 5 Leading virtual world» 129 million registered Habbo-characters
More informationMongoDB. David Murphy MongoDB Practice Manager, Percona
MongoDB Click Replication to edit Master and Sharding title style David Murphy MongoDB Practice Manager, Percona Who is this Person and What Does He Know? Former MongoDB Master Former Lead DBA for ObjectRocket,
More informationQuery Optimization, part 2: query plans in practice
Query Optimization, part 2: query plans in practice CS634 Lecture 13 Slides by E. O Neil based on Database Management Systems 3 rd ed, Ramakrishnan and Gehrke Working with the Oracle query optimizer First
More informationComparing SQL and NOSQL databases
COSC 6397 Big Data Analytics Data Formats (II) HBase Edgar Gabriel Spring 2014 Comparing SQL and NOSQL databases Types Development History Data Storage Model SQL One type (SQL database) with minor variations
More informationPostgreSQL/Jsonb. A First Look
PostgreSQL/Jsonb A First Look About Me Started programming in 1981 Owner of Enoki Solutions Inc. Consulting and Software Development Running VanDev since Oct 2010 Why PostgreSQL? Open Source Feature Rich
More informationRun your own Open source. (MMS) to avoid vendor lock-in. David Murphy MongoDB Practice Manager, Percona
Run your own Open source Click alternative to edit to Master Ops-Manager title style (MMS) to avoid vendor lock-in David Murphy MongoDB Practice Manager, Percona Who is this Person and What Does He Know?
More informationPostgreSQL Replication 2.0
PostgreSQL Replication 2.0 NTT OSS Center Masahiko Sawada PGConf.ASIA 2017 Copyright 2017 NTT corp. All Rights Reserved. Who am I Masahiko Sawada @sawada_masahiko NTT Open Source Software Center PostgreSQL
More informationMySQL vs MariaDB. Where are we now?
MySQL vs MariaDB Where are we now? Hey! A BRIEF HISTORY OF THE UNIVERSE (of MySQL and MariaDB) Herman Hollerith Unireg Begins Essentially, the origin of what we know MySQL as today, establishing its code
More informationMySQL Schema Review 101
MySQL Schema Review 101 How and What you should be looking at... Mike Benshoof - Technical Account Manager, Percona Agenda Introduction Key things to consider and review Tools to isolate issues Common
More informationOutline. Database Management and Tuning. Outline. Join Strategies Running Example. Index Tuning. Johann Gamper. Unit 6 April 12, 2012
Outline Database Management and Tuning Johann Gamper Free University of Bozen-Bolzano Faculty of Computer Science IDSE Unit 6 April 12, 2012 1 Acknowledgements: The slides are provided by Nikolaus Augsten
More informationGhislain Fourny. Big Data 5. Wide column stores
Ghislain Fourny Big Data 5. Wide column stores Data Technology Stack User interfaces Querying Data stores Indexing Processing Validation Data models Syntax Encoding Storage 2 Where we are User interfaces
More informationWhat is wrong with PostgreSQL? OR What does Oracle have that PostgreSQL should? Richard Stephan
What is wrong with PostgreSQL? OR What does Oracle have that PostgreSQL should? Richard Stephan PostgreSQL is an Enterprise RDBMS Schemas, Roles, Accounts Tablespace Management Table Partitioning Write-Ahead
More informationMongoDB w/ Some Node.JS Sprinkles
MongoDB w/ Some Node.JS Sprinkles Niall O'Higgins Author MongoDB and Python O'Reilly @niallohiggins on Twitter niallo@beyondfog.com MongoDB Overview Non-relational (NoSQL) document-oriented database Rich
More informationDelegates must have a working knowledge of MariaDB or MySQL Database Administration.
MariaDB Performance & Tuning SA-MARDBAPT MariaDB Performance & Tuning Course Overview This MariaDB Performance & Tuning course is designed for Database Administrators who wish to monitor and tune the performance
More informationCMU SCS CMU SCS Who: What: When: Where: Why: CMU SCS
Carnegie Mellon Univ. Dept. of Computer Science 15-415/615 - DB s C. Faloutsos A. Pavlo Lecture#23: Distributed Database Systems (R&G ch. 22) Administrivia Final Exam Who: You What: R&G Chapters 15-22
More informationNewSQL Databases. The reference Big Data stack
Università degli Studi di Roma Tor Vergata Dipartimento di Ingegneria Civile e Ingegneria Informatica NewSQL Databases Corso di Sistemi e Architetture per Big Data A.A. 2017/18 Valeria Cardellini The reference
More informationIntroduction to Column Stores with MemSQL. Seminar Database Systems Final presentation, 11. January 2016 by Christian Bisig
Final presentation, 11. January 2016 by Christian Bisig Topics Scope and goals Approaching Column-Stores Introducing MemSQL Benchmark setup & execution Benchmark result & interpretation Conclusion Questions
More informationPerformance Enhancements In PostgreSQL 8.4
Performance Enhancements In PostgreSQL 8.4 PGDay.EU 2009 Paris, France Magnus Hagander Redpill Linpro AB PostgreSQL 8.4 Released July 2009 8.4.1 released September 2009 Major upgrade from 8.3 New features
More informationGoals for Today. CS 133: Databases. Final Exam: Logistics. Why Use a DBMS? Brief overview of course. Course evaluations
Goals for Today Brief overview of course CS 133: Databases Course evaluations Fall 2018 Lec 27 12/13 Course and Final Review Prof. Beth Trushkowsky More details about the Final Exam Practice exercises
More information