Queries that scale article
Hi Everyone
I figured out the typescript thanks to @Anjana article, thanks @Anjana . It looks sooooo awesome to have everything flow all they to the form data 🕺
On a different topic, do anyone know of a good blog/artical on how its best structure the queries and mutation for scalability that can suggets
...
InstantDB differences from Convex
I'm working my way through Convex tutorial and it's been great. I can't wait to let convex handle the hard stuff for me!
btw I just saw this InstantDB thing that looks a lot like Convex to me: https://news.ycombinator.com/item?id=41322281
Does anyone know about the differences?...
Docs issue
Are the Convex docs open source? I found an issue on one of the pages and was going to file it, but I don't see a repo.
optional search
I tried like this:
```
let facilities = ctx.db
.query("facility")
.filter(q => args.id ? q.eq(q.field("_id"), args.id) : true);...
validator performance
size may impact performance a little, but complexity impacts it a lot. I'm confused why queries would be affected (they don't read schema), unless the argument validators are also huge.
Usage page feedback
humans are not great understanding large numbers like millions, would it make sense to show % on usage page?
I have 12k executions and I was thinking its a lot for small app and local dev but its actually %0.04 of the monthly quota lol...
At what interval does the usage data in
At what interval does the usage data in the dashboard refresh at?
Authorization - Convex Auth
📣 If you're using Convex Auth: You'll notice that in the latest version we changed
auth.getUserId
to getAuthUserId
.
Check out the updated docs: https://labs.convex.dev/auth/authz#use-authentication-state-in-backend-functions
We recommend you npm install @convex-dev/auth@latest
to get this change and any recent bug fixes....convex functions so powerful we have to
convex functions so powerful we have to remind people that javascript functions still exist 😄
doing a thread
but why does it always return undefined when im getting the thing
all args etc. are there...
Hey I wanted to ask, is there a way to
Hey I wanted to ask, is there a way to specify by which field you want to sort collection with index ?
for example
I have list of companies that have year revenue, and want to filter them based on the revenue, but I want to sort them based on creation date.
...
The domain ownership thing
Unfortunately that probably won't ever happen.
.convex.cloud
is owned "by us", and .convex.site
is owned "by you." It gets pretty complicated to have blended RPC / hosting domains.