Re: [go-nuts] Golang ORM Performances

2024-12-21 Thread Luca Pascali
engels wrote: > As I said, it is a common problem and readily solved if you know how to > use the ORM properly. > > This is in Java, but the technique is the same > https://medium.com/geekculture/resolve-hibernate-n-1-problem-f0e049e689ab > > On Dec 21, 2024, at 10:40 AM

Re: [go-nuts] Golang ORM Performances

2024-12-21 Thread Luca Pascali
le SQL statement. It’s called the N+1 Select problem and it is > solvable. > > On Dec 21, 2024, at 3:43 AM, Luca Pascali wrote: > >  > In my experience, ORM has a structural flaw, and it cannot be otherwise > (as well as a lot of automatic tools) > > Using ORM you are driven

Re: [go-nuts] Golang ORM Performances

2024-12-21 Thread Luca Pascali
In my experience, ORM has a structural flaw, and it cannot be otherwise (as well as a lot of automatic tools) Using ORM you are driven to write queries like (pseudo go code) objects := Table.filter(some rules) for o := range objects { if o.field == 5 { sub := Table2.filter(some other r

Re: [go-nuts] Discover go-size-analyzer: Streamline Your Go Binary Insights

2024-05-21 Thread Luca Pascali
Nice PSK On Tue, May 21, 2024 at 5:17 PM Zxilly Chou wrote: > Hello go-nuts, > > I'm excited to share a new tool that has landed in our Go ecosystem: > go-size-analyzer. This utility is designed to give you a clear picture of > the size of your compiled Go binaries, with a focus on how dependen

Re: [go-nuts] help

2024-02-18 Thread Luca Pascali
Hi. Error says that the connection string that is executed is pointing to TCP 127.0.0.1:5432 from your docker compose file there is no such string, you are correctly using go_db host name to work inside the docker network. So my guess is that you are not executing what you think you are executing

Re: [go-nuts] Printf

2024-02-02 Thread Luca Pascali
you forgot the \n in the printf format string without it, next is written right after the end of the printf Psk Il ven 2 feb 2024, 17:56 Juan Mamani ha scritto: > Hi everybody! > > I was checking consistency behavior of fmt.Printf with some basic > samples. And for my surprise never expected