Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Then you need a new version of the mysql libraries.
  2. Yup... then just skip the first record.
  3. What you return in your column list has nothing to do with how to mysql finds the matching records -- you need an ON clause.
  4. Well, you need to establish what the rate-limiting step is -- are the mysql queries optimized? check EXPLAIN.
  5. Well, debug the result set from your query directly -- otherwise, it's a php logic error.
  6. I think you're mixing ORs and ANDs without parentheses...
  7. Why not? There are ugly sql ways of doing this, but you'd need to tell us more about every possible variation in your dataset.
  8. FTS acts funny on smaller datasts... how big is your table?
  9. What you have seems correct... does it not work?
  10. As soon as mysql needs to create a temporary table -- like when you mention this column in a GROUP BY / ORDER BY clause -- then mysql will allocate the MAX length of this column.
  11. Well, you said 150 records, and I see limit 1?
  12. "Configured Max Per-thread Buffers" -- how is that being calculated? usually that's the worst-case scenario, so it's likely to be true.
  13. If there's a timeout on the server side, you have to run your script in smaller steps.
  14. This is all determined in your my.cnf file.
  15. fenway

    With Rollup

    Not easily.
  16. Yes-- except the comma operator is EVIL and should never, EVER be used.
  17. When, you can UNION those 3 bad record tables... and JOIN to $5 -- but I'm not sure if you can sql-ify #1.
  18. So --lock-tables is appropriate -- or all-tables, depending on what you're doing.
  19. I see blank field values... is that intentional?
  20. Just store a timestamp associated with each download.
  21. Until you use this column for group by / order by operations.
  22. The closer the value is to the maximum expected value, the better... but depending on your sql mode, you may get truncated data if you go over.
  23. Show us the table structure.
  24. What do you mean??
  25. Always.
×
×
  • 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.