Cakephp 2 prevent to log from a search action


#1

How can i make sure that cakephp 2.5 does not use the logs table from a specified action, that really did not need to log.

Because this operation is becoming too much expensive for the database.

The specified action is a search.

Is there a way to prevent this ? can i inside the controller method explicitely declare to not log that action ?

I see in the debugbar sql log section :

SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH FROM all_tab_columns WHERE table_name = ‘LOGS’

And in the database this operation is logged as the expensive query : SELECT LOGS_ID_SEQ.NEXTVAL FROM DUAL

How can i prevent this call?

Thank´s in advance