When evaluating my site through the devel module, it showed that there were 10 seperate queries on the front page to the following:

0.06 10 SELECT nid FROM ef_register WHERE uid = 1
0.06 10 SELECT nid FROM ef_host WHERE uid = 1

In the readme.txt for the devel module it said that there should not be multiple identical queries? Any ideas how I could fix this?

Comments

berko’s picture

Version: 4.6.x-1.x-dev » master

Any progress on this issue? I am experiencing the same thing in 4.7 (CVS).

Anonymous’s picture

Assigned: Unassigned »

I have been looking into this for the 4.7 upgrade.

Basically, these queries check whether or not a user is registered for or is the host for a particular event (as you could have gathered already). There was some reason I did this check for every event, but I cannot remember why.

If I can change it, I will, if not I will provide some clarification on why this is happening.

M