Convex Community

CC

Convex Community

Join the Convex Discord! Explore Convex, the open-source reactive database for app developers.

Join

support-community

show-and-tell

general

self-hosted

announcements

Persisting storage in React Native for a chat app

Let's take the chat app example for this, as our usecase is quite similar. We built an app that shows users a bunch of messages. We'd like the messages to be cached client-side across app restarts, with only the diffs being sent. So I guess in traditional databases it'd be some combo of a paginated query with a cursor + a separate offline database replication / cache / whatever. How can I implement this in Convex? We have a single user and already approaching free plan limits lol...

Is Convex the best choice? (For me)

Hey guys, I’ve got a product which is a CRM/ Booking system and invoice system. There is 70 tables in the db (currently using neon) ...

content within <Unauthenticated /> display regardless of user status

I followed the WorkOS authentication guide for Next.js at https://docs.convex.dev/auth/authkit/ and after signing up with a google account, and the user object being present from workos' useAuth(), it still only displays the content from <Unauthenticated /> and not <Authenticated />. ```tsx "use client"; ...

Subscription upgade now my product is not working

Hi All I have an urgent isssue My free plan project was going over limits on bandwidth so I thought I would upgrade to usagebased so I was not suspended -but now everything is down because I am getting the error "Your projects are disabled because the team exceeded Free plan limits. Decrease your usage or upgrade to re-enable your projects" Please help...

convex better auth - website reloads on signIn

Hi there, so I finally managed to signIn as a user with convex-better auth. The problem I have is that it is immediatly reloading the page, and then it will not remember my sign in. My signIn:...

Laggy Data View / table

My MVP dashboard (database product) shows 2.1 GB memory usage for just 175 columns (10 index) and 102 rows — and scrolling through the data feels very laggy and janky. even after scroll to end, if I scroll to up, still laggy! or 175 columns too much? ...

Convex env variables, and how should i integrate it into my larger env solution.

I use vercel to deploy my nexjts app, am deploying a mobile app soon, and browser extension. I have setup infisical to store enviroment variables and I am wondering how convex envs should play into this. Im thinking of just creating a gh action to sync envs from infisical to convex and never touch convex envs manually....

Transient error while executing action when doing a agent.generateText

basically what breaks is: ```console.debug('Calling product agent to generate assets'); await Promise.race([ productAgent.generateText( { ...ctx, orgId: args.orgId, versionId: args.versionId },...

action execution timeout after 10 seconds not 10 minutes.

Disclaimer: I hope I am on a wrong track. Today I am a bit puzzled I use self hosted convex and have a problem with an action that timeouts after 10 seconds. The Doc says 10 minutes: https://docs.convex.dev/production/state/limits. But the code (Rust backend code) indeed says 10 seconds! So either the documentation is wrong or the code: https://github.com/get-convex/convex-backend/blob/main/crates/isolate/src/tests/action.rs#L63 (test which expects a timeout after 10 seconds) The action which is timeouting is simple as: ```...

query - does convex expose any low level info(documents scanned, etc) per a given query?

I currently have a query doing 16mb on an indexed table. Does convex expose any low-level metrics per queries? There's some form of detailing on the dashboard, but it's aggregated and hard to isolate. Secondly, I'm aware queries are reactive, but is there any public documentation on what determines the triggers for this reactivity? In simpler terms, for a given query, What is the sync engine looking at? What counts as a trigger?...

how do i define a schema that links to a better auth component table user, id field ?

I want to do this: ``` tasks: defineTable({ text: v.string(), isCompleted: v.boolean(),...

TypeError: fetch failed

I’m getting this error when trying to use server-side rendering with preloadQuery: Failed to run onboarding logic: TypeError: fetch failed ...

Relation between App Schema and Component Schema (betterAuth)

So I am having hard times grasping that , I have convex/schema.ts which has the following ``` import { defineSchema, defineTable } from "convex/server";...

is there a way to avoid scrolling horizontally from running the action of going back in DB Dashboard

I often just want to see a table and scroll to the end but when I scroll to hard it would go back in page or go forward, would be amazing if there is a way to disable this behavior especially have table with many fields

Convex auth: override requested scopes

I'm using the Discord oauth provider, and according to the auth.js docs, I should be able to override the requested scopes like this: ``` import { convexAuth } from "@convex-dev/auth/server";...

Convex database rules

Is there any example of large scale use of these rules? Like, how do people manage it if they have hundreds of rules? Thanks for your input.

Imperative convex query

I update the user document on button click and want to get the user at the same event/function call Is there a way to query user inperatively(by calling the query as function for example)...

Better Auth Next.js example does not work

Running npx convex dev --once in the examples/next directory results in these errors:
No description

Keep paginated query from growing with new items

I have a paginated query that in the client I retrieve with usePaginatedQuery. The problem is whenever there's new items the results array grows with items I don't want to show at that point. Right now I am filtering out those new items in the client using the _creationTime of the first item that I have kept. This works but the results in the paginated query hook state keep growing unnecessarily. What is the recommended way of solving this? I have asked the docs AI and it has recommended using a timestamp and retrieving only items older than that. I can run another query for items newer than the timestamp to know if there are new items too. If I want to do that I need to generate the timestamp in the backend with another query because doing it in the frontend could be problematic, right? Is there a better way to solve all this that I'm missing?...

Hit error while running `auth:signIn` on prod

I'm using NextJS 15 + Convex Auth and deploying on Vercel with Cloudflare DNS, and i have this issue when signing into the account (creating the account is fine). Additional info: It works on dev...
No description