K1|ller
Explore posts from serversPPrisma
•Created by K1|ller on 1/23/2025 in #help-and-questions
why update/delete need the 'select' statement to not be empty??
will throw an error:
Question 2: Does select: {} improve query performance?
4 replies
PPrisma
•Created by K1|ller on 1/20/2025 in #help-and-questions
how do you manage very large models in nextjs?
So I made an app in nextjs and the user model is HUGE, around 70 lines of fields + relations, orders, products, chats, messages, reviews as buyer, as seller, followers, notifications and many fields.
The app isn't slow but I don't want the app to carry this information in everyplace because not all fields are necessary all the time and also I want to hide some information.
How do you manage large objects in your nextjs app with prisma?
3 replies
TTCTheo's Typesafe Cult
•Created by K1|ller on 1/6/2025 in #questions
avoid auto scrolling when intercepting routes
anybody knows a solution for this? scroll={false} won't work for everybody
https://github.com/vercel/next.js/discussions/48445
6 replies
PPrisma
•Created by K1|ller on 1/3/2025 in #help-and-questions
how to return the number of pages when doing pagination?
If I'm taking 20 results for each page, how do you also return the total of pages in the same query?
Repeating the query without pagination?
🧐
4 replies
PPrisma
•Created by K1|ller on 12/1/2024 in #help-and-questions
I need to register the popularity of products
I'm creating a site where I need to create some "product history" but also register the popularity so people can sort the product list. If I register each visit I'll be registering bots or crawlers visits.
How did you achieve this in your app? google analytics?
2 replies
TTCTheo's Typesafe Cult
•Created by K1|ller on 11/7/2024 in #questions
What's the folder structure of the zillow's "product page"??
8 replies
TTCTheo's Typesafe Cult
•Created by K1|ller on 7/10/2024 in #questions
Generating pdfs - what are you using?
6 replies
DTDrizzle Team
•Created by K1|ller on 5/31/2024 in #help
alternative to supabase postgres and realtime?
Looking for an alternative to this setup, what would you recommend?
2 replies
TTCTheo's Typesafe Cult
•Created by K1|ller on 5/31/2024 in #questions
supabase realtime 401 error
anybody using this service?, I need to change the UI in Next and no matter what I do I always get this 401 error. I have created the ssr client(browser client), also enabled with anon or disabled RLS, I have tried every combination available but no luck.
I have read the docs and no luck, their youtube video about next, no luck, is this service just broken? lol, I see no questions asked about this service in any group.
1 replies
TTCTheo's Typesafe Cult
•Created by K1|ller on 1/28/2024 in #questions
Prisma enum to Select component?
1 replies
TTCTheo's Typesafe Cult
•Created by K1|ller on 1/24/2024 in #questions
drizzle vs prisma speed?
2 replies
TTCTheo's Typesafe Cult
•Created by K1|ller on 1/21/2024 in #questions
Extremely slow queries
84 replies
what's this union type doing(Zod)?
I have 2 types of user, guest and registered(schemas). I have a union type with both and the guest doesn't include the "admin" field.
I expect Zod to pick one of the 2 schemas but when I do user.admin it just doesn't exist.
What is this union doing then?? I'm very confused.
1 replies
TTCTheo's Typesafe Cult
•Created by K1|ller on 1/15/2024 in #questions
Can't import superjson to Express?
3 replies
TTCTheo's Typesafe Cult
•Created by K1|ller on 12/7/2023 in #questions
Help with react-hook-forms form
2 replies