Sessions: Wrappers as "Middleware"
I haven't read that link, will read when I find the time.
I've been looking at https://stack.convex.dev/sessions-wrappers-as-middleware and it's a great idea but I feel it is a bit much to slap on for a simple use case like mine....
updatedTime
Is there a config for automatically setting
updatedTime
, similar to the autogenerated _creationTime
?Reading Data | Convex Developer Hub
2) My team is asking about joins and best practices around data model normalization/denormalization. Are there any docs on best practices and on how Convex deals with joins etc?
In the docs I find https://docs.convex.dev/database/reading-data#more-complex-queries and the last example looks super naive at first look, but I believe that's the idea, that Convex is converting it to a single query, and doesn't loop through it the way it looks. Yes?...
1 Are there any docs with thoughts on db
1) Are there any docs with thoughts on db migrations? Eg. renaming a table and make it go through for prod + all devs?
Announcing Convex 0.18.0
Looks like the release notes for 0.18 (https://blog.convex.dev/announcing-convex-0-18-0/) aren't listed on the releases page (https://blog.convex.dev/tag/releases/). Is that intentional?
Normalization and SQL-like strategies
second/last question for the evening --
as someone who is coming from firebase and with no sql experience, im trying to determine the best way to approach the typed schema design for convex. Should i approach convex solely with typed schemas in mind, which i assume would allow me to safely and efficiently model my data with firebase paradigms in mind (collections, docs, object-oriented) or should i adopt certain principles and processes like normalization as you see in sql?
Thanks in advance!...
Read/Write Limits
quick question regarding read/write limits -- i see that these limits are enforced at each query/mutation/function level, but to clarify/confirm -- if my query was to fetch the latest 100 docs, how many documents would be "scanned"? Could you also elaborate on "More than 4096 queries calls to db.get or db.query are made"
Using `crypto` in a mutation
is it possible to syncronously invoke an action from a mutation? I have a use case where I'm trying to do a jwt verify on a mutation, but it doesn't work because I need a node environment with the crypto package. I know you can use the scheduler to invoke an action from a mutation, but I really want the mutation to wait until the results are done of the jwt verify
Toast popup
feedback: the green toast on the console blocks all of the action button which makes me have to keep closing it when I'm trying to do a bunch of actions
Data import
Hi team, is there any way to manually add multiple pieces of data to the database? I tried adding a json file, but it doesn't seem to conform to the format (adding a single piece of data complies with type checking)
Error on signup
I'm trying to sign up using Github on convex.dev and I get this error: "An error occurred URI_TOO_LONG"
URL is: https://dashboard.convex.dev/api/auth/login?returnTo=%2Fapi%2Fauth%2Flogin%3FreturnTo%3D%252Fapi%
And a very long URL params...
postgres?
Hi this might be an odd question but what database is Convex using under the hood, and can we get direct access to it? The reason I'm asking is because I'm trying out the managed cloud offering of Supaglue, a unified CRM connector, and what they do is they sync all of a customer's data into a postgres instance that I give its connection info to. It only supports postgres or s3.
Shorter unique IDs for documents
is there a recommended way of implemented short code searchable references for documents? for example that I create a Job that would have a
reference
field with value "JD13931" and this value would be unique in the Jobs table. That way the users can search by reference
. This would be to make it easier for users to type in a short ID than the real convex document ids.I wanted to provide some feedback on my
I wanted to provide some feedback on my use of UniFFI in this POC. I decided to go with UniFFI primarily because it significantly reduces the complexity and workload involved in manual implementation. Additionally, the recent async support through the foreign language executor is a great advantage IMO. Another beneficial feature is the generation of foreign language bindings.
UniFFI is used by Mozilla for some of their projects (one example: https://github.com/mozilla/application-services) and Matrix (for their client SDK at https://github.com/matrix-org/matrix-rust-sdk), among others.
UniFFI handle data exchange with foreign languages by "serializing" the data (see: https://github.com/mozilla/uniffi-rs/blob/main/docs/adr/0002-serialize-complex-datatypes.md). For primitive types it's a simple cast, but for complex types it creates a buffer. For instance, a
Vec
is serialized by storing the length of the vector as the first bytes and the remaining data after that....Hey all finally trying out Convex here
Hey all, finally trying out Convex here on a react native app that I'm moving toward launch. I've been on urql + graphql-codegen + Hasura + Neon/Heroku for a while now and it's really hitting me how much effort it's going to take to get to production, and then to maintain from there. The app is pretty reactive, fair amount of subscriptions, and a number of load bearing postgresql triggers. I have an "ephemeral staging" setup in CI that works really well. And Convex seems like it's at a place where it may be able to replace all of that. Here's hoping!
My main question is, based on that short description, can you think of any blockers that I may run into?
And finally a more specific question: your react native/expo quickstart says to install react-dom - guessing that's a typo, but just wanted to confirm....