Skip to content
This repository has been archived by the owner on May 29, 2021. It is now read-only.

speedup #2

Open
ota42y opened this issue May 15, 2018 · 0 comments
Open

speedup #2

ota42y opened this issue May 15, 2018 · 0 comments

Comments

@ota42y
Copy link
Owner

ota42y commented May 15, 2018

This is very slow code...
https://github.com/ota42y/gemicoma/blob/master/app/controllers/github/users/repositories_controller.rb#L7

We should create github_repository-to-revision_head table

class Github::Repository::Head
belongs_to :github_repository
belongs_to :revision
end
( unique by [:github_repository_id, :revision_id] )

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant