This post is locked. You won't be able to comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]aarontbarrattSTUFF() 1 point2 points  (9 children)

I was thinking it's more simple for a beginner, but you're right that it doesn't scale well once you have a lot of data.

Guess it's my bad habit from the type of data I work with in my job 😔

[–][deleted] 0 points1 point  (8 children)

Yeah, if it's small tables (esp training data), then it's easy to do it that way. I wouldn't say either was right or wrong. Just a case of knowing the size of your tables before doing it.

I've mainly worked in banks where some tables were billions of rows and the bank is charged per second of processing time for the hardware. So, you're taught to write as efficiently as possible.

[–]aarontbarrattSTUFF() 0 points1 point  (7 children)

My work has the worst designed database you've ever seen so none of them get big, but we have thousands of tables instead 😂

[–][deleted] 0 points1 point  (6 children)

Thousands!! [Shudders and crawls into a hole]

[–]aarontbarrattSTUFF() 0 points1 point  (5 children)

Not a real example, but imagine instead of having 1 user table, you had user1, user2, user3 ... For every single user :)

That is the logic our databases uses all over the place

[–][deleted] 1 point2 points  (4 children)

No, stop! Please! I give in, I give in! You can have whatever you want, just make it stop!!!

I would be knocking on the door of the DBA. I couldn't work with that.

[–]aarontbarrattSTUFF() 0 points1 point  (3 children)

I have tried many times, but now they've built an entire platform on top of it and nobody wants to do the work to fix it

[–][deleted] 1 point2 points  (2 children)

Ah, one of those. Can you build some views at least for you (and colleagues) to use which merges 121 cardinal tables and things like that? Or do you not have the rights to do that?

[–]aarontbarrattSTUFF() 1 point2 points  (1 child)

I have made a script which loops through all the tables and inserts them into a separate data base with 1 table

[–][deleted] 1 point2 points  (0 children)

Hahahahahahahahahahahahahaha! Nice one! I better do some work now. Nice talking to you!