Performance of `auth.api.hasPermission` seem to be very slow
Do I need to create indexes in my sqlite database to improve it? [solved]
auth.api.hasPermission auth.api.getSession const session = await auth.api.getSession({ headers: c.req.raw.headers }); betterAuth({
session: {
cookieCache: {
enabled: true,
maxAge: 60 * 60 * 24 * 30, // 30 days
}
}, const startTime1 = performance.now();
// DB QUery, auth api call here.
const endTime1 = performance.now();
console.info(`Time taken is : ${endTime1 - startTime1} milliseconds`);