Presentation is loading. Please wait.

Presentation is loading. Please wait.

Trigger Happy - Getting around MySQL Limitations Phil Hildebrand theplatform.com.

Similar presentations


Presentation on theme: "Trigger Happy - Getting around MySQL Limitations Phil Hildebrand theplatform.com."— Presentation transcript:

1 Trigger Happy - Getting around MySQL Limitations Phil Hildebrand theplatform.com

2 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?

3 Triggers do come out of the box Understand the challenge Evaluate solutions Look beyond test into production

4 Foreign keys on partitioned tables Challenge: How do foreign keys work?

5 Possible solutions? Foreign keys on partitioned tables

6 Challenge: How do foreign keys work? Possible solutions? Foreign keys on partitioned tables

7 Challenge: How do foreign keys work? Possible solutions? What about production? Foreign keys on partitioned tables

8 Unique indexes on partitioned tables What’s the challenge/problem?

9 Unique indexes on partitioned tables What’s the challenge/problem? Possible solutions?

10 Unique indexes on partitioned tables What’s the challenge/problem? Possible solutions?

11 Unique indexes on partitioned tables What’s the challenge/problem? Possible solutions? What about production?

12 Conditional unique constraints Columns from Separate Tables Must Be Unique

13 Conditional unique constraints Columns from Separate Tables Must Be Unique Possible solutions?

14 Conditional unique constraints Columns from Separate Tables Must Be Unique Possible solutions?

15 Conditional unique constraints Columns from Separate Tables Must Be Unique Possible solutions? What about production?

16 Moving Innodb Tables/Partitions Ideas?

17 Moving Innodb Tables/Partitions Ideas?

18 Moving Innodb Tables/Partitions Ideas?

19 Moving Innodb Tables/Partitions

20 Ideas? Moving Innodb Tables/Partitions

21 5 Minute Challenge Global Index on a partitioned table ? Foreign Keys to different engines? New partition on insert ? Parallel partition queries ?

22 Any questions? Phil Hildebrand phil.hildebrand@theplatform.com opendba.blogspot.com


Download ppt "Trigger Happy - Getting around MySQL Limitations Phil Hildebrand theplatform.com."

Similar presentations


Ads by Google