Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Just dump into a temporary table, and then you can use INSERT INTO.. SELECT WHERE... as usual.
  2. I don't follow.
  3. Show us the query you have now.
  4. Well, those previous developers left you with a giant mess. If you add an index on (statusdate), queries 1 and 2 should be noticeably improved. For query3, try ( batch, depbank ).
  5. You don't have any indexes -- that's the problem. Why are you querying on parts of a column?
  6. I don't see why it's not using any key.
  7. Well, at some level, "users" and "picks" are completely different entities, so it's logical to keep them separate. What if you later change you design to allow for multiple picks per week? With 2 tables, that's easy -- with a combined table, that's all but impossible. If you store your entities cleanly, your application can mature without difficulty. If, instead, you choose to store the current relationships you require, you'll never be able to change them.
  8. There is a freelancing PHP forum.
  9. Yeah, that's the problem -- examining 900K rows to return 2. What are those queries -- can you post them, and their accompanying EXPLAIN?
  10. fenway

    mysqld

    I don't understand what that means.
  11. Show us the EXPLAIN.
  12. 10? You said 2.
  13. Clearly not.
  14. Doubtful.
  15. Sorry, what's broken?
  16. You want a random 2 of those 4 values?
  17. Uh, not RIGHT JOIN -- so uncoventional.
  18. Then you need to wrap this is yet another SELECT.
  19. fenway

    mysqld

    Basedir off the root?
  20. I don't know what a system is, for starters. But you're not showing any errors, any output from the slow query log, any examples of common queries, traffic, etc.
  21. Don't play with magic auto-increment values -- leave them alone. Your numbering doesn't matter -- and if it doesn't, use another column, or count yourself.
  22. fenway

    mysqld

    InnoDB?
  23. A temporary table just to sort????
  24. Wrong how?
×
×
  • 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.