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
-
hell165968yhe wants to store data related to 2013 on column 2013, 2014 data on column 2014 and so on...
instead of having another table with data and year columns so we could keep inserting data without having to keep adding columns for each year in the future, for example -
idk why not just use a timestamp and store the data in a table as per usual.. really needs some context
-
@azous Yea, had that happen. Boss even scheduled an all day event Dec. 31st to create the columns, update reports, apps, etc. I created a calendar table, set the necessary datapoints and used pivots to make the apps/reports look like the years were columns in the tables. Took 10 years before he noticed (user complaints on missing data). When I created the calendar table, I only pre-populated the data for 10 years. Thought for sure we'd be using a real business-intelligence solution by now.
-
hell165968y@dev-nope it's environmental data divided by city per year.
It will be incremented each year and will have a lot of data each year for 2000+ cities
it will be around 5M lines for 20 years
I really don't think that separate year data per column and performing table update each year instead of year data per line and just insert it is a good idea.
Related Rants
-
cdrice105"You gave us bad code! We ran it and now production is DOWN! Join this bridgeline now and help us fix this!" ...
-
MoboTheHobo35My Friend: Dude our Linux Server is not working anymore! Me: What? What did you do? My friend: Nothing I swe...
-
tommy15Right now someone at Google is coding something useless for us to laugh at on April Fools.
wtf boss!!!! Is it so hard to understand that having one column per year is a horrible bad practice?
undefined
db
wtf
boss
fml
bad practice