Re: Trigger is taking time to fire

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jul 13, 2008 at 11:59 PM, Ramasubramanian
<ramasubramanian.g@xxxxxxxxxxxxxxxxxx> wrote:
>
> Hi All,
>     I am having a trigger in table, If i update the the table manually it is
> not taking time(say 200ms per row), But if i update the table through
> procedure the trigger is taking time to fire(say 7 to 10 seconds per row).
>
> How can i make the trigger to fire immediately ?

I'm thinking the user defined function is using a cached query plan.
Try using execute to see if it runs faster that way.


[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux