This post is bizarre, precisely because there is nothing particularly wrong about the original schema, and the author seems to believe that the problem is that the column values were stored as strings, or that the schema wasn't in "third normal form". Which is nonsense. The problem with the original DB design is that the appropriate columns weren't indexed. I don't know enough about the problem space to really know i…
Is this correct? Would indexing the columns instead of moving the values to another table lead to the same increase in performance?
A terrible schema from a clueless programmer
61–70 of 493 posts
Re: A terrible schema from a clueless programmer
#62Re: A terrible schema from a clueless programmer
#63Earlier quoted context omitted.
Is this correct? Would indexing the columns instead of moving the values to another table lead to the same increase in performance?
An index is often easily viewed as another table. So, should. (Some subtleties on projected values and such, but the point stands.)
Re: A terrible schema from a clueless programmer
#64This post is bizarre, precisely because there is nothing particularly wrong about the original schema, and the author seems to believe that the problem is that the column values were stored as strings, or that the schema wasn't in "third normal form". Which is nonsense. The problem with the original DB design is that the appropriate columns weren't indexed. I don't know enough about the problem space to really know i…
Is this correct? Would indexing the columns instead of moving the values to another table lead to the same increase in performance?
Re: A terrible schema from a clueless programmer
#65IMO she’s still pretty clueless (sorry!), but over the years got better at self-promotion So the real lesson is to be very careful as to who you listen to
Re: A terrible schema from a clueless programmer
#66I think the 'terrible schema' thing is a secondary issue. The important take away for me was this: > Considering that we as an industry tend to chase off anyone who makes it to the age of 35, is it any surprise that we have a giant flock of people roaming around trying anything that'll work?
Re: A terrible schema from a clueless programmer
#67Re: A terrible schema from a clueless programmer
#68I've run into this form of greylisting, it's quite annoying. My service sends one-time login links and authorization codes that expire in 15 minutes. If the email gets delayed, the user can just try again, right? Except I'm using AWS SES, so the next email may very well come from a different address and will get delayed again.
Re: A terrible schema from a clueless programmer
#69Err. Wat. The original schema was (mostly) fine. It had no indexes. The second schema looks like it tried to work around lack of database optimization features. It's in no way "better" from a data design standpoint. A database with good string index support isn't doing string comparisons to find selection candidates - at least, not initially. What a bizarrely confident article.
That's a perfection description of mysql as of 2002.
Re: A terrible schema from a clueless programmer
#70Which post is referenced here?
I also believe this to be a tooling issue. It's often opaque what ends up being run after I've done something in some framework (java jpa, django queries whatever). How many queries (is it n+1 issues at bay?), how the queries will behave etc. Locally with little data everything is fine, until it blows up in production. But you may not even notice it blowing up in production, because that relies on someone having instrumented the db and push logs+alarms somewhere. So it's easy to remain clueless.