hasura / graphql-engine

Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
https://hasura.io
Apache License 2.0
31.06k stars 2.77k forks source link

CLI: CLI commands take a really long time run! #10420

Open coco98 opened 2 months ago

coco98 commented 2 months ago

Experience feels really slow. There's a lag both before the print and after the print.

Screenshot 2024-07-15 at 7 22 01 PM

To reproduce:

$ time ddn model add --name products --connector-link my_pg --subgraph my_subgraph/subgraph.yaml
        LOAD  Project
         ADD  Model for collection products, connector my_pg
    GENERATE    Model Products
    MODIFIED    (+6 more)
              WRITING changes

real    0m6.112s
user    0m0.663s
sys 0m0.093s
coco98 commented 2 months ago
$ time ddn connector-link update my_pg --subgraph my_subgraph/subgraph.yaml --env-file my_subgraph/.env.my_subgraph.local --add-all-resources

This takes 6.3s