vors
vors2y ago

I see long deployment times on the cafe

I see long deployment times on the cafe wifi
Convex functions ready! (22.26s)
Convex functions ready! (22.26s)
Is good internet a requirement?
10 Replies
nipunn
nipunn2y ago
22s is disappointing. Deployment should simply involve sending code over the wire. So if you don't have that much code, it should be fine. How much code? (du -sh convex/). Also how slow internet (google internet speed test?).
ian
ian2y ago
Also what does your actions usage look like? I’ve seen it be super snappy when there are no actions
vors
vorsOP2y ago
I have few actions. On mobile at the moment, I think we have maybe like 1000 lines of convex code max Google speed was 40 mbps
ballingt
ballingt2y ago
Try npx convex deploy --debug --debugBundlePath my-bundle and check the size of that thing It's not just Convex code, it's also libraries you're using
vors
vorsOP2y ago
error: unknown option '--debugBundlePath'
error: unknown option '--debugBundlePath'
@nipunn
(base) sergeivorobev@sergeis-air: ~/src du -sh convex/
232K convex/
(base) sergeivorobev@sergeis-air: ~/src du -sh convex/
232K convex/
nipunn
nipunn2y ago
argh it's --debug-bundle-path sorry npx convex deploy --debug --debug-bundle-path my-bundle
vors
vorsOP2y ago
ok. FWIW on the home internet I get
Preparing Convex functions...
Convex functions ready! (8.99s)
Preparing Convex functions...
Convex functions ready! (8.62s)
Preparing Convex functions...
Convex functions ready! (8.99s)
Preparing Convex functions...
Convex functions ready! (8.62s)
-rw-r--r--@ 1 sergeivorobev staff 7.1M Feb 23 18:40 my-bundle
-rw-r--r--@ 1 sergeivorobev staff 7.1M Feb 23 18:40 my-bundle
seems pretty small Also
time npx convex deploy --debug --debug-bundle-path my-bundle
time npx convex deploy --debug --debug-bundle-path my-bundle
Is just 2 seconds. VS 8 seconds that npx convex dev takes.
sshader
sshader2y ago
Another theory is that some of the time could be going to TypeScript compilation of your convex functions (if you're using TypeScript)
nipunn
nipunn2y ago
@vors can you ls -lh my-bundle to see how big the bundle ends up being? (sorry I left out that step)
vors
vorsOP2y ago
@vors 7.1M @sshader we do use a lot of typescript.

Did you find this page helpful?