Skip to content

Commit

Permalink
Update taxonomy.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Jan 23, 2024
1 parent 7c5f5af commit 24f51f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/name/taxonomy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,11 @@ def accepted_genus
# Letharia (Another) One
#
# NOTE: This method previously "climbed the tree", looking up each parent
# in the classification string sequentially, running up to 7 separate
# queries of the Name table and slowing down the show_name page by about 1s.
# in the classification string sequentially, running up to 14 new queries
# of the Name table and slowing down the show_name page noticeably.
# It's been painstakingly refactored to batch those lookups and select the
# matches from a single set of results. Very time consuming!
# Bonus for the naming emails query:
# Bonus for the naming emails query (doesn't work yet, though):
# Now allows eager loading (interests), plus adding self and "Lichen".
def parents(all: false, add_self: false, add_lichen: false, includes: [])
parents = []
Expand Down

0 comments on commit 24f51f8

Please sign in to comment.