Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Column one: "Is"
Column two: "this"
Column three: "the"
Column four: "real"
Column five: "life" -
What?? Relational model?? What kind of nerd stuff is that?? Let's put it all in one table.
-
I can see someone doing that in excel. But taking the time to learn postgres to do that... It's crazy.
-
hell165968y@spl0 387 rows 😂
I'm refactoring a lot of these tables, they let me rewrite the system from scratch.. Its much better now, this table is gonna die soon 😊 -
hoody458yI have a client who has something like this hundreds of columns in the same table. After some time the table didn't allow adding new columns any more. I had to split it to two tables but it broke some parts of their software (a proprietary one don't have code to change it only web interface to add columns or tables).
What would you do in this situation knowing that all columns define one row no duplicates or redundancy of data. -
Lukas18698yCreate views on the table and make the proprietary software use these views or build an interface that converts the view format to the format the prop. software expects? @hoody
-
spl020408yWhy can't you split it into multiple tables, with the same key if necessary? What sort of data is it?
-
hoody458y@spl0 this is what I did. But there's a lot of complicated things that doesn't work with this changes.
Some screens of the web interface needs some of the columns in one table to be populated of course. Other functionalities needs the same columns with others. I tried to separate the max of columns but there's still some functionalities that needs columns from both new tables.
Last thing I can do is to duplicate some columns to resolve all the problems.
The data is from a banking company, I don't know really what all columns mean to them.
Related Rants
-
linuxxx32*client calls in* Me: good morning, how can I help you? Client: my ip is blocked, could you unblock it for m...
-
DRSDavidSoft28Found this in our codebase, apparently one of my co-workers had written this
-
linuxxx23*client calls* "hello, we forgot the password to our WiFi router. Could you reset that for us?" 😐😶😮...
Its official, the biggest bullshit table so far here at work
undefined
wtf
table from hell