News for hackers. Stuff that matters.
Re:From zero to 10M lines of Kotlin by vbezhenar on Tuesday October 25, 2022 @03:33PM (#33335101)
Some of database tables I worked with had over 100 columns.
Re:From zero to 10M lines of Kotlin by krzyk on Wednesday October 26, 2022 @09:08AM (#33343087)
I don't think you need to map all of them to a single object - projections work well here.

There are very few cases where you need to work simultaneously on that many columns.

Re:From zero to 10M lines of Kotlin by vbezhenar on Wednesday October 26, 2022 @10:14AM (#33344026)
I can't imagine other way of dealing with database rather than using a single class per table. Projections are a way to optimize some niche queries which are too slow otherwise.
Re:From zero to 10M lines of Kotlin by krzyk on Wednesday October 26, 2022 @01:22PM (#33346718)
A 100 column table will be slow either way.