Hi,

I have noticed that when I submit a form the form is built again by fapi for validation and further processing. The pager queries of user_admin_account(), node_admin_nodes(), are executed at the time of form-build for validation etc . I think these stressfull queries are not needed here and should be avoided. Let me know if you think different in this point.

I am not sure which is the best way to avoid those. May be a hook after validation or submit can do those pager queries ..

-- Thanks

Comments

kamanashisroy’s picture

Status: Active » Closed (won't fix)

Hi,

Heine just shown me that the pager query results are used as form fields. They are used as checkbox fields. As those fields are needed for validation, we need to execute the queries before validation too. Thus rebuild of form along with pager queries before validation or submit hook is justified.

-- Thanks