Filter diff files by given path on DB instead Ruby
Only serialize diff files for given paths, that is, instead serializing every diff file, then filtering by path on Ruby, we pick up only diff files matching the given paths directly from the DB.
That should slightly speedup / consume less memory when:
- Commenting on diffs (we pass specific
paths
) - When expanding collapsed diffs (we pass specific
paths
)
What are the relevant issue numbers?
Part of #48246 (closed)