Can't tell in the video but does Prisma code completion capability require the project to be using Typescript? I have 2 next projects and noticed that the code completion only works in typescript. Hopefully I may have just missed something.
amazing work! documentation is never that clear, they make it look obvious but sometimes is not. A little more explanation like this is gold! My goal is to complete the 3 videos you got here. the extra on your website is pretty nice to follow the video step by step. Great work so far man!
There's an issue with using PostgreSQL and Next API routes: Next API routes are essentially lambda functions, and lambda functions can quickly cause connection issues with a database such as PostgreSQL. PostgreSQL has no built-in connection pooling, so managing the number of connections to the database is left to the application. If your application runs on lambda functions, every new lambda function will create a new connection pool. Since lambda functions cannot share each other's connection pools, the number of connections to the PostgreSQL database will increase as more lambda functions are spawned (that is, as you get more users using the app). As such, it isn't recommended to use lambda functions and PostgreSQL, unless you are using a proxy between the database and your lambda functions to manage the connection pool for those lambda functions. It should be noted that using a proxy will increase your infrastructure costs, since it is yet another server that needs to run alongside your database.
@@SamMeechWard Dude if you're interested do some state management stuff with the app directory. I just set up this current project with the app directory for the first time and I redux working with redux-persist, but I can't help but think there has to be a better way... Also, super solid video. I'm just becoming more of a fan of prisma after being super into mongoose and sqlite for a while and I think I've watched this video like 8 times.
Can't tell in the video but does Prisma code completion capability require the project to be using Typescript? I have 2 next projects and noticed that the code completion only works in typescript. Hopefully I may have just missed something.
amazing work! documentation is never that clear, they make it look obvious but sometimes is not. A little more explanation like this is gold! My goal is to complete the 3 videos you got here. the extra on your website is pretty nice to follow the video step by step. Great work so far man!
Hi, great video! A question, I would like to know what to implement in the share functionality? any ideas?
why would you rather use axios than fetch which is built in?
In next 13, we will just be able to make the component async and use prisma from the component with no http request!
you can do the same in next 12 using getServerSideProps or getStaticProps
There's an issue with using PostgreSQL and Next API routes: Next API routes are essentially lambda functions, and lambda functions can quickly cause connection issues with a database such as PostgreSQL. PostgreSQL has no built-in connection pooling, so managing the number of connections to the database is left to the application.
If your application runs on lambda functions, every new lambda function will create a new connection pool. Since lambda functions cannot share each other's connection pools, the number of connections to the PostgreSQL database will increase as more lambda functions are spawned (that is, as you get more users using the app). As such, it isn't recommended to use lambda functions and PostgreSQL, unless you are using a proxy between the database and your lambda functions to manage the connection pool for those lambda functions. It should be noted that using a proxy will increase your infrastructure costs, since it is yet another server that needs to run alongside your database.
Good note. What db is best alternative for it? MySQL? MongoDB?
@@Saradomin65 Definitely MySQL as an alternative
30:36 - They do now, it was why I was watching... Good stuff though, learned a few things. :)
great video, would love to see this fully exploited in a nextjs / react admin dashboard type project:-)
Thanks a million Sr. This is good information for my education and bussines :)
Glad I found this channel. Great job. Will be binging your content.
you're the best sam
thanks a lot for the video! really liked your way of teaching :D
Copilot... mind blown.
this guy just became my favorite programming teacher lol. Hilarious all throughout
anyone know what are the extensions he´s using? That autocomplete is lit!
It's called Copilot.
thanks
Amazing content. Please make more Nextjs content.
Thank you 😊
Experimental app directory & server components content, or stable pages directory?
@@SamMeechWard Dude if you're interested do some state management stuff with the app directory. I just set up this current project with the app directory for the first time and I redux working with redux-persist, but I can't help but think there has to be a better way... Also, super solid video. I'm just becoming more of a fan of prisma after being super into mongoose and sqlite for a while and I think I've watched this video like 8 times.
You saved me thank you so much
Amazing tutorial :D
Thank you!
tnx
Very nice :)
Best video ever
Awesome. Thanks a lot