acl_node_clear_acls() potentially loads a huge number of records instead of using a subquery.

This needs to be fixed.

We also need to look at the other functions for similar problems and then backport to D6.

CommentFileSizeAuthor
#2 optimize-acl_node_clear_acls.852486.2.patch778 bytessalvis

Comments

good_man’s picture

is limiting the similar queries (checking existence) to return only one row a one way to optimize it?

salvis’s picture

StatusFileSize
new778 bytes

It's not just about checking existence. The array is subsequently passed on to db_delete().

Could the attached patch work?

salvis’s picture

Status: Active » Needs review
salvis’s picture

Status: Needs review » Fixed

Committed in BETA3.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.