You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Queries on diffs for even moderately large repositories are incredibly slow. Our repository at work has ~5,500 commits.
The following operation to get the diff with the most deletions took ~30 minutes:
❯ time .cargo/bin/gitql --query 'select * from diffs order by deletions desc limit 1'
╭──────────────────────────────────────────┬───────────────────┬───────────────────────┬────────────┬───────────┬───────────────┬─────────────────────────┬───────────────────────────────────╮
│ commit_id ┆ name ┆ email ┆ insertions ┆ deletions ┆ files_changed ┆ datetime ┆ repo │
╞══════════════════════════════════════════╪═══════════════════╪═══════════════════════╪════════════╪═══════════╪═══════════════╪═════════════════════════╪═══════════════════════════════════╡
│ 8b685201464c3027afe9105bb5ed9b40a1befce7 ┆ Matthew Planchard ┆ msplanchard@gmail.com ┆ 3284 ┆ 41552 ┆ 212 ┆ 2024-08-15 18:15:45.000 ┆ /home/matthew/s/spec/.git │
╰──────────────────────────────────────────┴───────────────────┴───────────────────────┴────────────┴───────────┴───────────────┴─────────────────────────┴───────────────────────────────────╯
________________________________________________________
Executed in 27.37 mins fish external
usr time 27.25 mins 569.00 micros 27.25 mins
sys time 0.04 mins 0.00 micros 0.04 mins
During the entire time, a single thread was pretty much pegged. I can get this same result using git and awk in a fraction (1/270th, 0.37%) of the time:
Describe the bug
Queries on diffs for even moderately large repositories are incredibly slow. Our repository at work has ~5,500 commits.
The following operation to get the diff with the most deletions took ~30 minutes:
During the entire time, a single thread was pretty much pegged. I can get this same result using git and awk in a fraction (1/270th, 0.37%) of the time:
Queries on
commits
seem to run in a more reasonable amount of time, e.g.:To Reproduce
Expected behavior
Speed is at least within an order of magnitude of git/awk
GQL (please complete the following information):
GitQL version 0.28.0
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: