DB Query: number of photos per month by EXIF date?

dbc001

Joined: 2007-01-13
Posts: 3
Posted: Sun, 2009-07-12 23:46

Hi
I'm trying to graph how many photos I take per month, and I'm having a hard time understanding Gallery's database. I'm looking to do something like this:

SELECT *, COUNT( * ) AS `count`
FROM `gallery2`.`tablename` WHERE 1
GROUP BY `month`
ORDER BY `date`
LIMIT 0,12

Obviously gallery2's database is much more complex than the above... I can probably get to it if someone could post an SQL statement that would get me a single image along with it's EXIF date...

Thanks in advance!
dbc

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6138
Posted: Mon, 2009-07-13 00:11

I believe exif is for display only, each photo's exif data is not stored anywhere, it is read and displayed on-the-fly.
Which is why the exif module is considered such a performance killer.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2