![]() |
|
zp_images table - Safe to remove unused columns? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: zp_images table - Safe to remove unused columns? (/thread-11901.html) |
zp_images table - Safe to remove unused columns? - darkufo - 2015-03-06 Hi, We're having some performances issues on our high traffic gallery. We get traffic spikes of 200+ concurrent users. We're already on a 8 Core Powerful Standalone server but even with that 200+ concurrent users is grinding to a halt. The server admins are saying the main cause is the select * from ZP_Images SQL which is taking time. They suggested we might look into removing some of the table columns so. So my question is, is it safe for me to remove any columns in the table that we don't use. eg the Videoxxxxxx stuff? See Screenshot We don't have a any video etc. So those 15 Columns in the ZP_Images table are not required. Many thanks in advance. zp_images table - Safe to remove unused columns? - acrylian - 2015-03-06 Technically that should work for all the metadata fields but note this has not been tried before. In any case be sure to disable the columns here before removing them:
Of course you will get the fields back on every update. We will take a look if we can improve those parts for the next major version planned if it does not cause to many incompatibilies. zp_images table - Safe to remove unused columns? - darkufo - 2015-03-06 Thanks Acrylian, I'm going to take a backup just in case I'll let you know how I get on. zp_images table - Safe to remove unused columns? - acrylian - 2015-03-06 Backup is always a good idea zp_images table - Safe to remove unused columns? - darkufo - 2015-03-06 Seems to have worked Got it down from 120+ columns in that table down to 43. Hopefully that will alleviate some performance issues zp_images table - Safe to remove unused columns? - acrylian - 2015-03-06 Great, hopefully it does work out for you. |