Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB SQL » View Thread |
Messages 11 to 11 of 11 total |
Very slow ALTER TABLE statement |
Fri, Jul 13 2018 11:43 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Adam,
<< I have realized that the table is PUBLISHED. It also has links to other tables, and triggers ... so I am guessing that I ought to probably switch off the triggers and publishing during the ALTER, then refresh triggered values afterwards with a single statement. >> In addition to disabling triggers, you can also use the new statement/procedure caching in 2.28 to optimize triggers and other executable SQL that may get executed during such long operations. Triggers can be called recursively, so EDB has to constantly create/destroy any objects (statements, cursors) referenced in the triggers, and this can take its toll in the same way that executing 1 million inserts using dynamic SQL is much slower than executing 1 million inserts using a manually-prepared statement with parameters: it's incurring a lot of overhead involved with constantly opening/closing other tables. Tim Young Elevate Software www.elevatesoft.com |
« Previous Page | Page 2 of 2 | |
Jump to Page: 1 2 |
This web page was last updated on Saturday, May 4, 2024 at 12:54 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |