Project

General

Profile

Refactor #4329

refactor with_taxonomy_scope to optimize SQL

Added by Joseph Magen over 7 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Organizations and Locations
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

per Marek's comment on PR 1105

so we find all records within specific location, the find the same for specific organization and then combine these ids which we use in third query? sounds like work for SQL instead of ruby? I understand it's not that easy using ancestry but this does not feel right to me, what do others think?

History

#1 Updated by Dominic Cleal over 7 years ago

  • Category set to Organizations and Locations

#2 Updated by Dominic Cleal over 7 years ago

and remove the explicit reference to the User class.

#3 Updated by Eric Helms about 7 years ago

  • Bugzilla link set to 1123965

#4 Updated by Marek Hulán over 6 years ago

  • Description updated (diff)

Also available in: Atom PDF