Subject | Re: [firebird-support] Clear Query Cache Firebird 2.1 |
---|---|
Author | Helen Borrie |
Post date | 2009-06-03T12:45:03Z |
At 10:30 PM 3/06/2009, you wrote:
./hb
>I am developing stored procedures that are used in queries. It looksThere is no "query result cache". Firebird's cache holds images of pages that have been visited; also (which affects you) it contains the compiled code of any stored procedure or trigger that has been run since the process started. For SS that equals "any connection since the database last came online"; for Classic, it equals "anything I have done in this connection (= process instance)". The cache isn't cleared until the process closes.
>like my test queries do not use the output of the newest version of my
>stored procedure, but takes the result from the "query result cache" of
>the database.
>Stepping the procedure returns the expected results!Sounds as though you are using some tool like IBExpert or similar, that can simulate execution of a SP. It's not executing it at the server.
>Does the altering of stored procedure not clear the corresponding queryForget "query cache". An altered stored procedure won't be available until after all users have logged out (SS) or to any Classic processes that were running when the ALTER PROCEDURE was executed.
>cache?
>Is there a command to clear the cache or to force a query to generateYes: an API call to isc_detach_database(). ;-)
>new results?
>I am using Firebird Version "WI-V2.1.2.18118 Firebird 2.1" and IBExpertThere ya go, then! You're in the virtual world of IBExpert, so you are! ;-)
>2009.03.25
./hb