Re: Loading png images into a mysql table/database




seaside schrieb:

eholz1 schrieb:

Hello Members,

I am setting up a photo website. I have decided to use PHP and MySQL.
I can load jpeg files into the table (medium blob, or even longtext)
and get the image(s) to display without a problem.

Just a small performance note:

Additionally, here is a bit more on MySQL:

- The query cache of MySQL is OFF by default. On a production system,
you should turn it on,
Since this might return significant better performance.

- You should keep all your queries in a separate module and call
function of this module from everywhere in your web-app.

Note, that MySQL only uses the query cache, if queries are absolutely
identical. Even if one character is lower-case in one query and
upper-case in the other, MySQL assumes them to be different. Same
applies to white-space.

.



Relevant Pages

  • Re: Crashing repeatedly: 6.2-RELEASE-p5 and MySQL 5.0.41
    ... kernel to have a consistent crash coredump. ... Anyway still in my mind is that even if not tuned mysql should not cause my ... The query cache is a kludge. ... apparently are heavily using Innodb, but you have just set various myiasam ...
    (freebsd-stable)
  • Re: mysql and BIND 9.4.2
    ... I have several nameservers running from a replicated MySQL database, ... There's a good deal of information on configuring bind-dlz on the ... make sure the query cache ... cache isn't filled with non bind related queries. ...
    (freebsd-questions)
  • Re: MemCacheD slower than calling MySQL?
    ... users when it's really busy. ... (including output from SELECT fetched from a remote MySQL server), ... lot of RAM to keep this into sessions. ... MySQL with a larger query cache. ...
    (comp.lang.php)
  • Re: FreeBSD5.3-RC1 MySQL Performance
    ... > the MySQL backend was MyISAM. ... > 6139 queries per second ... Your results for system scope threads is actually pretty good and is ... difference between FreeBSD and Linux being due to things like the fsync ...
    (freebsd-current)
  • Re: Your suggestions about this Dell configuration?
    ... either Apache or MySQL stops responding. ... If it's 3-4 million for each site per month, the hardware you are ... If you're getting lots of ad-hoc database queries and fetches/writes ...
    (freebsd-questions)