Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. This is a pointless argument... you can't JOIN a permission from inside a SET.
  2. No, I want you to add those as ON conditions.
  3. The most "general" is to have full control over the permission records -- which requries them to be records.
  4. dating_user_info info ON sessions.user_id = info.user_id Add to the ON clause.
  5. There's a missing comma after t.id.
  6. Well, at least for the INSERTs, you can probably use DELAYED / IGNORE. For the UPDATEs, you can use LOW_PRIORITY.
  7. ALTER TABLE customfields MODIFY COLUMN `cust_field_type` varchar(100) NOT NULL default '';
  8. See here -- it will log everything.
  9. Post this live somewhere
  10. Don't know cpanel... but you can issue a simple ALTER TABLE statement.
  11. 1M users? You'll have other issues by then.
  12. Hmmm... you can try adding the range limits to the ON clause in the JOIN with the info table....
  13. As I mentioned before, my preference is a separate permissions table... if it's indexed by user_id, the cardinality is good, and it should be relatively fast to get back a few permission records; then it gives you room to grow.
  14. Why? Run the fast query, then limit the results in PHP.
  15. What's wrong?
  16. Assuming you have your own DB wrapper class, this is simple... otherwise, there's a query log, but it's binary...
  17. Depends on how many indexes have to be updated...
  18. What's the query? Don't blame an entire RDMBS for a syntax error.
  19. fenway

    Select bitmask?

    You can't index a bitmask the way you're thinking.
  20. fenway

    Whats faster

    Using flat files is just asking for trouble -- there's a reason they invented databases.
  21. Check out LOAD DATA INFILE in the refman -- your delimiters can be just about anything.
  22. There's no way to query across an entire DB with a single query -- you'd have to look into 3rd party indexing solutions.
  23. You want to do what?
  24. Your grants table doesn't allow connections for that user from that ip.
  25. Subquery != dervied table -- at least if it's not correlated. Subqueries can be bad because they run for each row -- long as it's just run once per query, it's not as bad. Yes, there is no indexability; if you're really concerned about this, you can create a temporary table in memory, index it, and then join it properly.
×
×
  • 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.