Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by fenway

  1. This is a common misunderstanding -- if you have a bowl of fruit, and you ask someone to hand you apples and oranges, you'll likely get 2 kinds of fruit.

     

    But this isn't a Boolean AND -- it's a Boolean OR.

     

    Asking for the fruit that is both an apple AND and orange will result in no matching fruit.

  2. Obviously, adjust to suit your column needs accordingly (untested):

    SELECT * FROM files
    INNER JOIN platforms ON ( files.id = platforms .file_id ) 
    INNER JOIN resolutions ON ( files.id = resolutions.file_id )
    WHERE resolutions.resolution = '$match_resolution' AND platforms.platform ='$match_platform';
    
  3. Don't store images in the database, just the filename. Store images in the filesystem.

     

    To be clear, it's a bad idea to store images (file contents) in an RDBMS -- noSQL is great for this stuff (because your files are still accessible from multiple nodes, etc.).

×
×
  • 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.