Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. I don't follow -- just upgrade the DB after following mysql's instructions.
  2. 300K rows is nowhere near giant -- don't even worry about partitioning at this level.
  3. Transactions are not per session -- ACID compliance ensures that this is not the case.
  4. Easy -- you don't have an index on (field1,field2).
  5. fenway

    In_array

    FIND_IN_SET() does this too, if it's comma-separated.
  6. Well, check mysql_errror() -- and remove the @ sign before mysql_query(), since that silences errors. What does that echo return?
  7. Everything's possible -- but this is really two issues: one -- grab all of the values from all of the tables, and two -- deal with php to populate and write out html accordingly.
  8. It's not -- where did you get that idea?
  9. Let's start again -- you want the most recent for each forum, correct?
  10. No, no no no no. You need the full comparison for each field.
  11. By forum.
  12. This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=306977.0
  13. Just chain them together with OR... what have you tried that didn't work?
  14. Sorry, I thought it said correlated, not dependent -- though I do prefer the LEFT JOIN over NOT IN(). But no, not to the original query, just to the one you recently posted. Add an index on ( scriptID, siteID ) and see how it performs -- drop the other one, of course.
  15. Again, drop the group by for a minute -- and dependent subquery is the problem. Use a LEFT JOIN ... is NULL instead.
  16. The only reasonable "limit" being multi-valued insert statements.
  17. Probably -- use a column alias.
  18. Good point ... missed that... then SQL.
  19. Please post EXPLAIN output again.
  20. So solved? If so, please mark as such.
  21. That's all but impossible -- executive this query from the command-line, or phpmyadmin, and prove it.
  22. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=306815.0
  23. Not nearly enough information to help you out.
  24. SQL is useful if you want to repopulate the table. Otherwise, CSV is deal. Everything else is just silly.
  25. That's what the refman is for -- bh was even kind enough to link it for you.
×
×
  • 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.