Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Are you sure your POST hash is "full"?
  2. OK... what do you mean by distinct? One set of votes per company, per rating?
  3. You probably need to specify how to delimit the fields.
  4. No problem... I find it's easier to read "AND", but it's the same. Just remember precedence rules if you mix OR's and AND's.
  5. Like I said, you'd have to check the function spec... I don't know what options they support.
  6. That's right... again, covering indexes are for optimization problems... if you're going to be searching by key2 a lot without key1, then yes, have both. You may also want to read up on the way index_merge works in 5.0.
  7. Numbers are also much faster to join than words.
  8. It's possible that your connect() call could do this, you'd have to check the php spec.
  9. There's no such thing as BIGINT(250)... it's BIGINT(20). And if you want to make it bigger, add UNSIGNED. That's it.
  10. If you're really using the decimal type, AndyB is correct.
  11. Around your date fields.
  12. Ah, Word...yup, plenty of garbage there.
  13. This may be related to another problem that we're working on fixing... stay tuned.
  14. It's some sort of non-ASCII character... where did this text come from? Rich text editor?
  15. Remove the where clause, add each piece the the select column output, you'll be suprised.
  16. Yes... LEFT JOIN.
  17. fenway

    Very long update

    Might be the max_join_size.
  18. Obviously, a JOIN is "expensive" in the way that you describe it... but denormalization is worse. Especially because you didn't denormalize it on purpose. It's not joins "galore", it's one for each... and with an index, it should be almost instantaneous.
  19. It will only be used if you use the N leftmost keys in a query. If you have (key1, key2, key3), and you try and search for key2 = something, it won't use it. Again, if you're using all three (or N left) parts regularly, it may improve performance. And it's the same size as 3 separate keys.
  20. What does the ratings table look like?
  21. No, I mean a derived table.
  22. Don't think that you can do look aheads in mysql.
  23. Sounds like an linebreak issue
  24. I don't get that... but I get lots of JS errors.
  25. fenway

    Very long update

    Hmmm... with 30+ fields, and perhaps not a fixed-width record, the server has to do a seek on each one to grab the value from one record then set it on the other one. Have you tried a covering index on ( id, rank )? Then it should be able to grab the value directly from the index without ever reading the table!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.