Skip to content

Commit

Permalink
preload studyset_studies table
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkent committed Jun 20, 2023
1 parent f42bb38 commit df4e697
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions store/neurostore/resources/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ def view_search(self, q, args):
def join_tables(self, q):
"join relevant tables to speed up query"
q = q.options(joinedload('analyses'))
q = q.options(joinedload('studyset_studies'))

return q

Expand Down

0 comments on commit df4e697

Please sign in to comment.