Original query:

EXPLAIN SELECT SUM((“project_statistics”.“repository_size” + “project_statistics”.“lfs_objects_size”)) FROM “projects” INNER JOIN routes rs ON rs.source_id = projects.id AND rs.source_type = ‘Project’ INNER JOIN “project_statistics” ON “project_statistics”.“project_id” = “projects”.“id” WHERE (rs.path LIKE ‘gbobject/%’) LIMIT 1