[go-nuts] Whats the fastest cpu (per $) regarding golang compiler performance?

2017-04-19 Thread 'slinso' via golang-nuts
Hi all, I'm interested in the compiler performance of different cpus. How much impact has the number of cores? Or is higher frequency with a few cores better regarding compile time / $. Maybe someone already owns a new ryzen cpu. Is it worth buying a highend Intel cpu (i7 or xeon) for 1000$ or

Re: [go-nuts] Re: Whats the fastest cpu (per $) regarding golang compiler performance?

2017-04-19 Thread 'slinso' via golang-nuts
A lot of factors will affect compilation speeds. And scaling won't be linear by adding more cores, I know, but how well does the compiler already uses the available cores. How well does the compiler scale? The mentioned CL above will provide some nice performance increasements for multicore sys

[go-nuts] database/sql left join best practicea for null values

2017-04-25 Thread 'slinso' via golang-nuts
What's a nice way to handle left joins with database/sql? Imagine you have a users who can optional have an image. So you have an optional 1:1 relationship. Example: type User struct { ID int Loginname string Password string ImageIDint // or sql.NullInt depends on your DB

[go-nuts] Re: database/sql left join best practicea for null values

2017-04-25 Thread 'slinso' via golang-nuts
Forgot to mention that I currently use MySQL with go-sql-driver. Another solution would be to use mymysql as a driver. That one maps null values to go type default zero values. But I wanted to stick to go-sql-driver because I think it is more actively maintained. -- You received this message b