diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-09-26 11:22:52 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-10-04 22:49:42 +0200 |
commit | ac0b104ae4968adaed7b94db76c0ac86badb6d6b (patch) | |
tree | be0737e1d9971911bedc48bb05d1fe84e46ac93a /lib/gt_one_coercion.rb | |
parent | cd85c22faa7092edabf252fa157125ea571ed054 (diff) | |
download | gitlab-ce-ac0b104ae4968adaed7b94db76c0ac86badb6d6b.tar.gz |
Minimize the number of queries by preloading counts and ancestors
By preloading the count of members, projects and subgroups of a group,
we don't need to query them later.
We also preload the entire hierarchy for a search result and include
the counts so we don't need to query for them again
Diffstat (limited to 'lib/gt_one_coercion.rb')
0 files changed, 0 insertions, 0 deletions