I read few posts regarding ORMs in golang & realized, few peoples are not happy with it.
They mentioned to use raw queries with our own wrapper if want to make few things reusable.
I was actually using Gorm, which was super slow, then I started research regarding performance efficient ORMs, and found Bun which was indeed faster compared to Gorm. But then I explored documentation more and realized it doesn't provide enough function to make life easier, this ORM even doesn't have community I felt.
1. I want to know readers view regarding ORMs in Go.
Let me tell you something, my project is a huge project, and I decided to use Golang for better performance. But now I feel I've to write a lot of code and slow/less-featured ORMs here making me irritated.
2. What do you guys suggest is go really good for large projects?
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/6addef83-3e2d-4b6c-b543-8127f5754f0en%40googlegroups.com.
On Dec 19, 2024, at 9:17 AM, Mike Schinkel <mi...@newclarity.net> wrote:
Hi Bhavesh,
To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/C487B8AE-D8EF-47AE-A06C-48AC422DFD07%40newclarity.net.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/ecd8789f-2f4b-45d7-ac14-1f28d9fd3a38n%40googlegroups.com.
On Dec 21, 2024, at 3:43 AM, Luca Pascali <pasc...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/CAJNBTxKjFUr-XYU4qC%3DRb6mvFmhQuRQ%2BmiA%3DyFxd6bypnCzLkg%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/C487B8AE-D8EF-47AE-A06C-48AC422DFD07%40newclarity.net.
On Jan 8, 2025, at 1:38 AM, Henry <henry.ad...@gmail.com> wrote:The reason people use ORMs is because they don't want to write SQL. ... A thin wrapper over SQL language that is portable across databases is a better solution.
On Jan 8, 2025, at 11:56 PM, Henry <henry.ad...@gmail.com> wrote:I am not aware of any SQL wrapper in Go, but then I didn't look hard enough. At work, we implemented our own SQL wrapper for a few databases we commonly work with. In .Net, you have LINQ, but LINQ is a query-only language. But the idea is the same, which is to provide a common interface when working with data sources. That way you can switch databases with minimal changes to your project code. Working with SQL and its dialects and dealing with each database's quirkiness is quite time consuming.
My statement will be unpopular fact.
My workplace using gorm for application with avg 3k qps. Even at some point its exponentially increase to around 50k (campaign event). Its a big project. Never had issue caused by gorm specifically.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/9A49DA81-78F2-4C22-8B3D-8E9A35CA3D83%40newclarity.net.
Reason for that is that doing all DB access methods in the application language (Go or Java) tends to a codebase where you have SQL code snippets scattered over in your code. When the application now grows it will be more and more demanding to make changes. Thus, this does not scale up.