Gray
Gray
CCConvex Community
Created by Gray on 10/25/2023 in #support-community
Profiling function performance
Great—thanks for circling back, @ian!
10 replies
CCConvex Community
Created by Gray on 10/25/2023 in #support-community
Profiling function performance
Thanks for the update, @rkbh!
10 replies
CCConvex Community
Created by Gray on 10/25/2023 in #support-community
Profiling function performance
Thanks, @Indy! On a related note, with my performance concerns alleviated, I'm now digging into database bandwidth usage and would find some more granular tools helpful there, too. Not sure at what layer database bandwidth is measured, but if it's done per function invocation, even something as minor as adding bandwidth usage to the log view would be very helpful.
10 replies
CCConvex Community
Created by Gray on 10/26/2023 in #support-community
What to expect from built-in query caching
Thanks for the detailed explanation, @james! It's great to have explicit confirmation that your aim is to make caching as plug-and-play and reliable as possible, and to know how that translates to the design. One follow-up question: is there any difference between dev and prod instances in this regard (e.g., different cache size limits, or differences in the frequency with which the backend might be restarted)? I have thus far only been working in my dev instance, and I thought I was seeing some surprising cache misses, but it's possible that I just pushed code or changed data and forgot. I will look forward to sub-query caching, as I am currently decomposing my query and taking a small perf hit for an additional round-trip to avoid per-user caching, but this is not a big problem at all.
7 replies
CCConvex Community
Created by Gray on 10/25/2023 in #support-community
Profiling function performance
FWIW, I ended up going ahead and trying a reasonably simple form of denormalization and found that it dramatically improved the performance of my function, to the point where I’m no longer concerned. That said, I’m still generally interested in the topic of performance profiling, as I imagine the need could arise again.
10 replies
CCConvex Community
Created by Gray on 10/25/2023 in #support-community
`ConvexClient` questions
My interest in the simpler client is due to the fact that I'm not using React, but wanted the same level of seamless reactivity at the application-code level. It wasn't super difficult to roll my own on top of BaseConvexClient, but it was clear that there was a useful layer of abstraction missing prior to the release of ConvexClient.
6 replies
CCConvex Community
Created by Gray on 10/25/2023 in #support-community
`ConvexClient` questions
Thanks, @ballingt! Makes sense. RE: optimisitic updates, I suspected the reason was something along those lines. RE: the transition API, glad (and not surprised) to know it's already on your radar. Fortunately, in my current end-to-end use case, I don't think either of these features is critical. If that proves to be wrong, it should also be pretty easy for me to temporarily switch back to my own client under the hood.
6 replies
CCConvex Community
Created by DerPenz on 8/30/2023 in #support-community
Is svelte support planned? update: its supported!
Thanks, will check it out!
69 replies
CCConvex Community
Created by DerPenz on 8/30/2023 in #support-community
Is svelte support planned? update: its supported!
Definitely keen to see this when it's ready (or even before)! I pieced together a framework-agnostic, callback-based reactive client a few months ago as I was initially exploring Convex but haven't had time since then to do much with it. Is the idea to include your client in Convex releases going forward, or is it just an example of how you'd build one on top of the base web client?
69 replies
CCConvex Community
Created by yarrichar on 7/17/2023 in #support-community
Unique database fields
Can you also call queries from within mutations or other queries? If so, does caching apply to those inner query calls?
48 replies
CCConvex Community
Created by fay on 5/20/2023 in #support-community
isAuthenticated from useConvexAuth flashes true, lands at false, even though auth0 is authenticated
OK, figured it out. For posterity, in case anyone else with similar symptoms finds their way to this thread: it turns out that I wasn't including useRefreshTokens: true and cacheLocation: 'localstorage' in my auth0 client config. These options are noted in the Convex docs, but since my non-React use case had me off the beaten path I didn't end up noticing.
89 replies
CCConvex Community
Created by fay on 5/20/2023 in #support-community
isAuthenticated from useConvexAuth flashes true, lands at false, even though auth0 is authenticated
Need to hop out for a while, but I'll circle back here later. I've been planning to ping the general chat here about my experimentation with framework-agnostic reactivity, but haven't quite gotten it to a state where it's ready for that and haven't had time to touch it for a couple of weeks, either.
89 replies
CCConvex Community
Created by fay on 5/20/2023 in #support-community
isAuthenticated from useConvexAuth flashes true, lands at false, even though auth0 is authenticated
Hi, Jamie! I'm currently using Lit to render and Preact Signals for state management, but my objective was really just to see if I could make a more generic "reactive client" for Convex that didn't depend on any React-specific abstractions (e.g. hooks, context).
89 replies
CCConvex Community
Created by fay on 5/20/2023 in #support-community
isAuthenticated from useConvexAuth flashes true, lands at false, even though auth0 is authenticated
Hi, Michal. I'm seeing more or less exactly the same behavior described in the original post on this thread—I get one callback from the Convex client saying that Convex is authenticated, then a moment later a second one saying it's not
89 replies
CCConvex Community
Created by fay on 5/20/2023 in #support-community
isAuthenticated from useConvexAuth flashes true, lands at false, even though auth0 is authenticated
One note is that I'm not using React, so have rolled my own auth0 - Convex integration based on examining the React implementation; not sure if there's any kind of special handling in the React implementation that I may have missed.
89 replies
CCConvex Community
Created by fay on 5/20/2023 in #support-community
isAuthenticated from useConvexAuth flashes true, lands at false, even though auth0 is authenticated
Update: it looks like it has to do with privacy preferences in each browser. In Firefox, it works if I disable dynamic state partitioning. In Safari, I need to turn disable "Prevent cross-site tracking" altogether.
89 replies
CCConvex Community
Created by fay on 5/20/2023 in #support-community
isAuthenticated from useConvexAuth flashes true, lands at false, even though auth0 is authenticated
I'm running into this same behavior, with the odd twist that it's working fine in Chrome but failing in Firefox and Safari. I've checked my auth0 app settings and cleared my history, per the discussion in this thread, but to no avail. Any other ideas?
89 replies