Open SimonLab opened 2 years ago
@SimonLab totally agree this painful amount of time. But it's not something the "users" of an App should be aware of. We shouldn't have any requests in the Phoenix
App (or Elm
fronted) that wait for the git push
to finish. 💭
The way I was thinking of getting around this response time in the Demo App https://github.com/dwyl/gitea-demo/issues/12 was to:
a. Cache the file contents in ETS
or Mnesia
for speed so that the Editor loads instantly. (sub 200ms)
b. Perform the git push
in a background Task
perhaps by using a Que
Found this post helpful: https://blog.appsignal.com/2019/05/14/elixir-alchemy-background-processing.html
Running a push command to Gitea takes between 10/20 seconds to complete.
related to https://github.com/dwyl/gitea-server/issues/6#issuecomment-1138332612