PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Installation & Upgrades

Photopost Pro Installation & Upgrades If you're having install or upgrade problems

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old June 20th, 2004, 05:34 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Oct 2002
Location: Germany
Posts: 259
Send a message via ICQ to dontom
Question Massive performance problems after 4.6 -> 4.8c update

Hi,
i did the upgrade last monday night - after this the load on our database and our webserver tripled, so we had to shut down the albums totally because our whole site was getting very slow.

I just dropped 4 index-fields manually, that somehow were not dropped during the update - could this have caused this or do you have an other suggestion?

Our installation 26,899 users, 31,321 fotos and 27,851 comments - using vb3x user integration.
Our servers run using PHP Version 4.3.7 /w PHPA and MySQL 4.0.18
Tom

(attached the db load - our problem was the webservers load which was often > 30.00)
Attached Images
File Type: png load-month.png (4.1 KB, 25 views)

Last edited by dontom; June 20th, 2004 at 05:37 PM.
dontom is offline   Reply With Quote
Old June 20th, 2004, 06:13 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
Dropping those 4 index's should help on larger installs--CORRECT. That is why that was added to the 4.8 update.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 20th, 2004, 06:16 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Oct 2002
Location: Germany
Posts: 259
Send a message via ICQ to dontom
ok - i'll see if it is better tomorrow,
Tom
dontom is offline   Reply With Quote
Old June 20th, 2004, 06:48 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 99
Could you please post a bit more information about this ? I just upgraded and have around 190,000 users. I know what load is of course - but what is the function of the index files and should they be dropped ? Is the current code accessing them ?
WebDork is offline   Reply With Quote
Old June 20th, 2004, 06:57 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
If your index's did not drop when you ran the upgrade script you would have been notified big and bold.

You can safely go in and delete those in phpmyadmin.

Here are the queries so you see what was dropped

$query[] = "ALTER TABLE {$pp_db_prefix}categories DROP INDEX lastphoto";
$query[] = "ALTER TABLE {$pp_db_prefix}categories DROP INDEX thumbnail";
$query[] = "ALTER TABLE {$pp_db_prefix}iponline DROP INDEX userid";
$query[] = "ALTER TABLE {$pp_db_prefix}photos DROP INDEX approved";
$query[] = "ALTER TABLE {$pp_db_prefix}photos DROP INDEX date";
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 20th, 2004, 06:59 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 99
Thanks - I did get errors that drops failed - but didnt pay attention as they were only drops. Will check it out.
WebDork is offline   Reply With Quote
Old June 20th, 2004, 07:23 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 99
Uh oh. I hope I havent just done something dumb.

From your above post I understood that I could simply go in via phpmyadmin and delete those indexes from those tables ? I did that no problem, but now my site doesnt load ? Its like the index.php doesnt exist. Any ideas ? Help

Last edited by WebDork; June 20th, 2004 at 07:29 PM.
WebDork is offline   Reply With Quote
Old June 20th, 2004, 07:33 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
Any Ideas?

YUP You did not drop the index's BUT SOMETHING ELSE. I would bet my life you dropped the actual table structure elements NOT THE INDEX
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 20th, 2004, 07:41 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 99
Hmmm - I hope not - but probably did...

I thought to drop it was to click on this next to the above fields you mentioned:

Code:
Content visible to verified customers only.
But sounds like that drops the whole thing not just the index ?

If I did do the wrong thing - please tell me it can be fixed...
WebDork is offline   Reply With Quote
Old June 20th, 2004, 07:55 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
Yes you dropped the whole thing not the index

INDEX'S are listed underneath the structure in phpmyadmin. You going to kick yourself when you see that

Use these queries in phpmyadmin

ALTER TABLE iponline ADD userid VARCHAR(128) NOT NULL default ''

ALTER TABLE categories ADD lastphoto INT(11) UNSIGNED

ALTER TABLE categories ADD thumbnail INT(15) DEFAULT '0' NOT NULL

ALTER TABLE photos ADD date int(15) NOT NULL default '0'

ALTER TABLE photos ADD approved tinyint(2) NOT NULL default '0'
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 20th, 2004, 08:00 PM   #11 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 99
Thanks heaps for that. I have run those queries. Do I now need to run something to populate the data - or will it fill itself in over time ?
WebDork is offline   Reply With Quote
Old June 20th, 2004, 08:06 PM   #12 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 99
What I now seem to have is a site with no images but a MASSIVE approve queue. Is there a way I can set them to all approved ? No thumbs etc either in the approve queue.
WebDork is offline   Reply With Quote
Old June 20th, 2004, 09:15 PM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
UPDATE photos set approved='1' WHERE approved='0'

Now you try under scan database Check here to recalculate photos/posts numbers and check children.

I am assuming this is all you dropped.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 21st, 2004, 11:05 AM   #14 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 99
Thanks for all that - Im back up and running. Great relief.

Only last remaining problem seems to be all photo galleries have last photo uploaded set to "Thu Jan 1, 1970 12:00am by admin" and it doesnt seem to be updating.
WebDork is offline   Reply With Quote
Old June 21st, 2004, 11:35 AM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
Thats because the script never takes into account someone dropping key table structures. You should be fine when another new photo is uploaded

If you have a very recent database backup you could redo things otherwise the best thing to do since you dropped the photos date column would be to run this

UPDATE photos SET date='1087836012' WHERE date='0'

and then run another update counts

This will set all your photos and your last uploads to today since right now everything says the beginning the the epoch since the field is by default 0
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; June 21st, 2004 at 11:42 AM.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
performance degradation after update to 5.02 dvn Photopost Pro Installation & Upgrades 4 March 29th, 2005 01:31 PM
Few Problems after update from 4.82 to 4.86 SaN-DeeP Photopost Pro Installation & Upgrades 11 February 1st, 2005 11:29 AM


All times are GMT -5. The time now is 12:09 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0