Embed
Email

Trigger Happy_ Getting Around MySQL Limitations Presentation

Document Sample

Shared by: liamei12345
Categories
Tags
Stats
views:
2
posted:
10/23/2011
language:
English
pages:
22
Trigger Happy -

Getting around

MySQL Limitations







Phil Hildebrand

theplatform.com

Who says that can’t be done?





Maybe it can’t be done out of the box, but that’s

doesn’t necessarily mean it can’t be done …





 Restrictions are blinders

 Think out of the box

 If it’s not challenging, why bother?

Triggers do come out of the box



Understand the challenge







Evaluate solutions







Look beyond test into production

Foreign keys on partitioned tables



Challenge: How do foreign keys work?

Foreign keys on partitioned tables



Challenge: How do foreign keys work?







Possible solutions?

Foreign keys on partitioned tables



Challenge: How do foreign keys work?







Possible solutions?

Foreign keys on partitioned tables



Challenge: How do foreign keys work?







Possible solutions?







What about production?

Unique indexes on partitioned

tables



What’s the challenge/problem?

Unique indexes on partitioned

tables



What’s the challenge/problem?







Possible solutions?

Unique indexes on partitioned

tables



What’s the challenge/problem?







Possible solutions?

Unique indexes on partitioned

tables



What’s the challenge/problem?







Possible solutions?







What about production?

Conditional unique constraints



Columns from Separate Tables Must Be Unique

Conditional unique constraints



Columns from Separate Tables Must Be Unique







Possible solutions?

Conditional unique constraints



Columns from Separate Tables Must Be Unique







Possible solutions?

Conditional unique constraints



Columns from Separate Tables Must Be Unique







Possible solutions?







What about production?

Moving Innodb Tables/Partitions



Ideas?

Moving Innodb Tables/Partitions



Ideas?

Moving Innodb Tables/Partitions



Ideas?

Moving Innodb Tables/Partitions



Ideas?

Moving Innodb Tables/Partitions



Ideas?

5 Minute Challenge



Global Index on a partitioned table ?





Foreign Keys to different engines?







New partition on insert ?





Parallel partition queries ?

Any questions?









Phil Hildebrand

phil.hildebrand@theplatform.com

opendba.blogspot.com


Related docs
Other docs by liamei12345
of Approved Sensitivities _4-29-11_ - EIPC
Views: 0  |  Downloads: 0
02Test-Result-III-Web
Views: 2  |  Downloads: 0
Chicken Soup Poems
Views: 16  |  Downloads: 0
Kansas - Association of Women Psychiatrists
Views: 0  |  Downloads: 0
Selection 12
Views: 0  |  Downloads: 0
Lesson 6-Building a Directory Service
Views: 0  |  Downloads: 0
piacente_10_11
Views: 1  |  Downloads: 0
By registering with docstoc.com you agree to our
privacy policy

You are almost ready to download!

You are almost ready to download!