hasanaktasTR
hasanaktasTR
CCConvex Community
Created by hasanaktasTR on 9/10/2024 in #support-community
Big dataset not in filter
I have asked about this topic before but there are things I can't figure out. I am setting up a structure similar to tinder. I keep the reactions of the users and the user id they reacted to in a table. My flow is working now but it is obvious that it will have problems with large data. (We can think of a scenario where 1 user has 100 thousand reactions and the total number of profiles is 1 million). When there is no more people to show this query to the client on the client side, the request is thrown. Therefore, it is not affected by table changes. It works like a rest api. I have read all the articles but I cannot find a solution where I can use the index for this scenario. I have to filter, which leads to a full table search. I am putting the sample code below. I would be glad if you help me.
27 replies
CCConvex Community
Created by hasanaktasTR on 8/23/2024 in #support-community
Typescript error for @tanstack/react-query useMutation
No description
4 replies
CCConvex Community
Created by hasanaktasTR on 8/1/2024 in #support-community
Typescript error for @tanstack/react-query when extra parameter is added
No description
26 replies
CCConvex Community
Created by hasanaktasTR on 7/29/2024 in #support-community
Storage generate upload url new features
Is it possible to add any restrictions in the function that we can use when generating upload URLs for storage in the future? for example -file size -file type -expiry example api
storage.generateUploadUrl({
size:2048 //byte
type:"image/*",
expiry:10 //seconds
});
storage.generateUploadUrl({
size:2048 //byte
type:"image/*",
expiry:10 //seconds
});
usage scenarios can be expanded. do you have any plans for this?
9 replies
CCConvex Community
Created by hasanaktasTR on 7/25/2024 in #support-community
useQuery single request
I have a query and I have multiple tables that affect it. What I want is to throw the query once and use it on the client. I can send a request as an http end but what I want is an internal solution. For example const data= useQuery(api....) //web socket const data=useFetchQuery(api....) //http request We can turn the API from query function to mutation function on the server and use it on the client but this time we give up the backend cache
13 replies
CCConvex Community
Created by hasanaktasTR on 7/18/2024 in #support-community
Convex Auth - Capacitor Based web and mobile app
Can you prepare a document or example on how to log in on mobile for applications that use the Capacitor infrastructure? It works fine on the web side, but I couldn't run it on the mobile side. I think an intermediate layer is needed for Expo, such as the openAuthSessionAsync and makeRedirectUri functions used in the document.
6 replies