Removing Views Increment 4 ever!
|
stefffff
Joined: 2007-08-25
Posts: 19 |
Posted: Thu, 2009-10-15 21:26
|
|
can someone point me to the location of the views function? Query | 7 | Copying to tmp table | SELECT g2_ImageBlockCacheMap.g_itemId, g2_ItemAttributesMap.g_viewCount FROM g2_ImageBlockCacheMap L | Query | 4 | Locked | UPDATE g2_ItemAttributesMap SET g_viewCount = g2_ItemAttributesMap.g_viewCount + 1 WHERE g_itemId=69 | this is what they say it is the problem. from what i see here i can bet this has to do something with the views of every photo i have on my site my gallery is located here: http://www.music-juice.com/gallery2 i have somewhere around 40.000 pictures and this seems to slow down the queries very much! i just want to get rid of the views incremental function for ever. currently i have deactivated the views count from the admin, but i fear there is a back function still running. can someone help me with this? here are my gallery2 details Gallery version = 2.1.2 core 1.1.0.2 thanks in advance! |
|

Posts: 16501
This is an old post and the code has probably changed:
http://gallery.menalto.com/node/33037
But you're also using an old version too, so....
I'd also suggest upgrading to 2.3:
FAQ: How to upgrade Gallery2?
There have been MANY enhancements to not only security, but features as well as performance.
And if you're looking to increase performance, uninstall GD and get ImageMagick working and take a look at this page:
http://codex.gallery2.org/Gallery2:Performance_Tips
And eventually you may want to look into upgrading to G3 as it's going to perform much better than G2. But that's no small upgrade for a Gallery of that size so there may be other things you need to take into consideration.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 19
oh thank you so much nivekiam! indeed the view count function was removed be deleting the code from modules/core/showitem.inc hopefully now it won't call any queries from the db.
i will try however to update to a newer version of g2, and see what happens next.
i wonder what problems will i have when my db reaches 1.000.000 pictures....