Drop view is too slow - optimize -------------------------------- Key: CORE-3568 URL: http://tracker.firebirdsql.org/browse/CORE-3568 Project: Firebird Core Issue Type: Improvement Affects Versions: 2.5.0 Reporter: Tim Kelly
Hi there. I find the drop view command very slow. About 10 seconds per view with my current database in which I have several hundred views which depend on each other: 22:15:45] -> Dropping view YDOV_BIZ_QUOTE 22:15:49] -> Dropping view YDOV_BIZ_REQUEST 22:15:53] -> Dropping view YDOV_BPL_PURCHASE_INVOICE 22:16:13] -> Dropping view YDOV_BPL_PURCHASE_ORDER_ITEM 22:16:17] -> Dropping view YDOV_BPL_PURCHASE_ORDER 22:16:21] -> Dropping view YDOV_BPL_ARRIVAL_NOTE I am waiting up to 10 seconds per view and this is very frustrating as it can take an hour to drop all my views. I presume the delay has something to do with calculating dependencies. If this is the case I wonder if perhaps dependencies could be cached to improve performance? Perhaps a dependency graph cache? All my views are system generated based on definitions made in a proprietary high level language. My server app converts these definitions into firebird sql on startup hence my requirement to regularly drop and create views. I know there is now a create or alter view command - i don't know if this performs better but I'd rather not go down this road for other technical reasons. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel