Bogdan
Bogdan
CCConvex Community
Created by Bogdan on 9/17/2023 in #support-community
Can i check equality like this?
yeah you are absolutely right i just set up my tests wrong
3 replies
CCConvex Community
Created by andylukak on 9/17/2023 in #support-community
schema help
you should look into these two articles
8 replies
CCConvex Community
Created by andylukak on 9/17/2023 in #support-community
schema help
const images = await ctx.db.query("images")
.withIndex("by_userId", q => q.eq("userId", <_id attribute of user>)
.collect();
const images = await ctx.db.query("images")
.withIndex("by_userId", q => q.eq("userId", <_id attribute of user>)
.collect();
8 replies
CCConvex Community
Created by andylukak on 9/17/2023 in #support-community
schema help
now you can access all images associated with a user from the _id attribute of the user
8 replies
CCConvex Community
Created by andylukak on 9/17/2023 in #support-community
schema help
images: defineTable({
userId: v.id("users"),
...
}).index('by_userId', ['userId']);
images: defineTable({
userId: v.id("users"),
...
}).index('by_userId', ['userId']);
8 replies
CCConvex Community
Created by andylukak on 9/17/2023 in #support-community
schema help
if the foreign key in the images table is the images primary key, you could use indexes
8 replies
CCConvex Community
Created by Bogdan on 9/12/2023 in #support-community
Handle client disconnecting?
There probably will be cases where it doesn’t reach the server in time but I couldn’t get it to fail
55 replies
CCConvex Community
Created by Bogdan on 9/12/2023 in #support-community
Handle client disconnecting?
Yeah I did too before I went home saw no issues with it, excited to fully implement it
55 replies
CCConvex Community
Created by Bogdan on 9/12/2023 in #support-community
Handle client disconnecting?
thank u for pointing this out u guys r great
55 replies
CCConvex Community
Created by Bogdan on 9/12/2023 in #support-community
Handle client disconnecting?
i should j read the docs for a good few days
55 replies
CCConvex Community
Created by Bogdan on 9/12/2023 in #support-community
Handle client disconnecting?
http actions riiiight
55 replies
CCConvex Community
Created by Bogdan on 9/12/2023 in #support-community
Handle client disconnecting?
and i instantly disreguarded sendBecon because i was fully convinced in the moment there was no http api endpoint
55 replies
CCConvex Community
Created by Bogdan on 9/12/2023 in #support-community
Handle client disconnecting?
in my testing onunload and onbeforeunload worked like 1% of the time
55 replies
CCConvex Community
Created by Bogdan on 9/12/2023 in #support-community
Handle client disconnecting?
as my app stands right now implementing presence with heartbeats will be the feature that throws me over the edge function call and bandwith limits wise
55 replies
CCConvex Community
Created by Bogdan on 9/12/2023 in #support-community
Handle client disconnecting?
yes im all ears. honestly the most ive thought about it is reducing the time between heartbeats but that would just get rid of that nice instant responsiveness
55 replies
CCConvex Community
Created by Bogdan on 9/12/2023 in #support-community
Handle client disconnecting?
do you have any advice on how to approach this other than storing and constantly reading/writing presence data? its quite resource-intensive.
55 replies
CCConvex Community
Created by FelipeJz on 9/14/2023 in #support-community
Is there any way to do something similar to a sql left join using queries?
No description
7 replies
CCConvex Community
Created by FelipeJz on 9/14/2023 in #support-community
Is there any way to do something similar to a sql left join using queries?
I was wondering the same thing, the docs say that complex queries, including a join, should be handled with javascript. https://docs.convex.dev/database/reading-data#more-complex-queries
7 replies