NHeroOriginal post
Rank 2: Process
I have initialised two clients in appwrite one with .setSession() other with .setKey()
. If have to call the function for creating those clients and get something from it like databses, account, user, storage etc
I have used these things in many places so i have to call the function in many places and the function will get triggered everytime the page loads but before i had the exports to databses , account, user, storage now will it consume more resources and cost more time , or is there something i can do ?
Summary
Developers are managing two clients in Appwrite, one with `.setSession()` and the other with `.setKey()`, used across various parts of the code. To optimize, export the functions that create clients with modules needed. This will avoid multiple initializations and save resources.