Sim
Well-known member
After migrating 280,000 photos into XFMG for our ZooChat migration last week, I rebuilt the EXIF data and was a bit alarmed to find that the xengallery_media table was now very large.
Before I rebuilt the data, the table was around 60MB for 280,000 photos, but now it's 1.9GB according to phpMyAdmin, or 1.4GB when I add it up myself using sum(length(<column>))
media_exif_data_cache_full is 1.2GB
media_exif_data_cache is 160GB
Is there a more efficient way of storing this data? At least move it to a different table perhaps?
I'm a little concerned that storing the data directly in the main media table will place an unnecessary strain on the database server, since it will be trying to cache all of the EXIF data as well as the other data, when it won't actually need the EXIF data until the media is actually displayed.
Can I suggest some optimisation be performed for future versions?
Before I rebuilt the data, the table was around 60MB for 280,000 photos, but now it's 1.9GB according to phpMyAdmin, or 1.4GB when I add it up myself using sum(length(<column>))
media_exif_data_cache_full is 1.2GB
media_exif_data_cache is 160GB
Is there a more efficient way of storing this data? At least move it to a different table perhaps?
I'm a little concerned that storing the data directly in the main media table will place an unnecessary strain on the database server, since it will be trying to cache all of the EXIF data as well as the other data, when it won't actually need the EXIF data until the media is actually displayed.
Can I suggest some optimisation be performed for future versions?
Upvote
0