Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. "Another DB table"? Which table? How is is related?
  2. Yes, I see. Well, for each record in your temp table, you'll need to query the other tables to see if there are any matches. If so, use that UID. If not, INSERT, then grab the new UID.
  3. I see dozens of queries and 50K of posted code. How about only posting the offending query?
  4. FTS is weird and magical -- like dragons. It misbehaves on very small datasets -- this is a known limitation.
  5. You need a third table linking movieID to userID -- preferably with a timestamp, too.
  6. There are lots of reasons to use such a loop -- though I doubt this case is one of them.
  7. Sorry, I don't follow -- why is there a temporary table?
  8. I've told you not to double-post before -- last warning.
  9. How about showing us your table structure and the queries you're running, instead of making us guess?
  10. That's because you're missing a JOIN condition.
  11. I can't find the INSERTs in that code.
  12. Technically, you should be counting in each subquery and then summing.
  13. That's a great way to start.
  14. Echo the actual query.
  15. How many threads can you open on what appears to be the exact same query?
  16. FYI, UPPER() still won't guarantee a case-sensitive match.
  17. You can't use a subquery to examine a table created in another subquery.
  18. Wait -- you just want to show the first 5 awards a given member has? Simple JOIN with LIMIT.
  19. Please, please stop posting all of your code.
  20. But you shouldn't.
  21. You have two things called "invoiceTable"?
  22. 5.1 has a event scheduler... but cron really is the way to go.
  23. I've heard nothing but horror stories about them.
×
×
  • 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.