Site changes - 03/30/2012

Important stuff goes here?
User avatar
anonymous_object
Site Admin
Posts: 1584
Joined: Tue Jan 24, 2006 2:04 pm
Location: Good old US of A
Contact:

Site changes - 03/30/2012

Post by anonymous_object »

As some of you have noticed, shuushuu has been running a bit slow recently. Today, we've pushed out some updates that will increase site performance. This will benefit the main page as well as searches by decreasing load and wait times.

To achieve these improvements we had to change the way page numbers are displayed. It's a bit less detailed than before but I think the gains will be worth it.

Let me know if you encounter any problems! ^^
e-shuushuu!
Image
Merun
Posts: 2897
Joined: Sat Mar 17, 2007 9:44 am
Location: NoWheRe

Re: Site changes - 03/30/2012

Post by Merun »

Searching by user name returned an error:

Code: Select all

Message
No data supplied for parameters in prepared statement
Code
2031
File
/storage/www/e-shuushuu.net/common/functions/db.php
Line
380
Backtrace
Array
(
    [0] => Array
        (
            [file] => /storage/www/e-shuushuu.net/community/memberlist/index.php
            [line] => 90
            [function] => execute
            [class] => db_stmt
            [type] => ->
            [args] => Array
                (
                )

        )

)
Also for people who use Autopagerize or other extension like that, I have created a new XPath for E-shuushuu and submitted it to http://wedata.net/databases/AutoPagerize/

New XPath:

Code: Select all

//div[@class='pagination']/ul/li[last()]/a
If people want to test, they can, and I would greatly appreciated it since I'm no expert in XPath. It should work, but I didn't test it intensively.
Merun @ Twitter
User avatar
anonymous_object
Site Admin
Posts: 1584
Joined: Tue Jan 24, 2006 2:04 pm
Location: Good old US of A
Contact:

Re: Site changes - 03/30/2012

Post by anonymous_object »

Merun wrote:Searching by user name returned an error:
Fixed.
e-shuushuu!
Image
User avatar
Tensa
Posts: 1265
Joined: Sun Sep 13, 2009 1:53 pm
Location: 絵 収集

Re: Site changes - 03/30/2012

Post by Tensa »

Aham... might be because of this, so... http://e-shuushuu.net/image/0/ when it should come after http://e-shuushuu.net/image/488028/

Also when trying to upload something else,

Code: Select all

Message
    Duplicate entry '0' for key 'PRIMARY'
Code
    1062
File
    /storage/www/e-shuushuu.net/common/functions/db.php
Line
    380 
Image
Merun
Posts: 2897
Joined: Sat Mar 17, 2007 9:44 am
Location: NoWheRe

Re: Site changes - 03/30/2012

Post by Merun »

Congratulation, you just broke Shuu's upload for everyone. Now that's some wonderful improvement for performance xD. No more uploads = faster!

Complete backtrace:

Code: Select all

Message
Duplicate entry '0' for key 'PRIMARY'
Code
1062
File
/storage/www/e-shuushuu.net/common/functions/db.php
Line
380
Backtrace
Array
(
    [0] => Array
        (
            [file] => /storage/www/e-shuushuu.net/common/functions/uploadimage.php
            [line] => 144
            [function] => execute
            [class] => db_stmt
            [type] => ->
            [args] => Array
                (
                )

        )

    [1] => Array
        (
            [file] => /storage/www/e-shuushuu.net/upload/index.php
            [line] => 37
            [function] => submitFullImage
            [args] => Array
                (
                    [0] => /tmp/phpEWDQpi
                    [1] => 26220880.jpg
                )

        )

)
Merun @ Twitter
User avatar
anonymous_object
Site Admin
Posts: 1584
Joined: Tue Jan 24, 2006 2:04 pm
Location: Good old US of A
Contact:

Re: Site changes - 03/30/2012

Post by anonymous_object »

With progress comes difficulty.

This has been fixed.
e-shuushuu!
Image
User avatar
Yatchen
Posts: 1852
Joined: Sat May 30, 2009 11:43 am
Location: ひみつ

Re: Site changes - 03/30/2012

Post by Yatchen »

Can we have the option to go to the last page back or is an efficient mass tagging style (exclude the tag you're adding, start from back, images disappear when you add the tags, so you never double tag or miss anything) just SOL? :P
私は悪魔です。
Merun
Posts: 2897
Joined: Sat Mar 17, 2007 9:44 am
Location: NoWheRe

Re: Site changes - 03/30/2012

Post by Merun »

I think that optimizing the website implied the removal of the "last page" button ^^;
Merun @ Twitter
User avatar
anonymous_object
Site Admin
Posts: 1584
Joined: Tue Jan 24, 2006 2:04 pm
Location: Good old US of A
Contact:

Re: Site changes - 03/30/2012

Post by anonymous_object »

Yatchen wrote:Can we have the option to go to the last page back
Unfortunately, no. This change was required to fix performance issues.
Yatchen wrote:or is an efficient mass tagging style (exclude the tag you're adding, start from back, images disappear when you add the tags, so you never double tag or miss anything) just SOL? :P
I've read this sentence a few times and I'm still not sure what you're trying to say ^^;
e-shuushuu!
Image
User avatar
Ran
Posts: 2663
Joined: Thu May 04, 2006 11:57 am
Location: Canton, Ga
Contact:

Re: Site changes - 03/30/2012

Post by Ran »

anonymous_object wrote:
Yatchen wrote:or is an efficient mass tagging style (exclude the tag you're adding, start from back, images disappear when you add the tags, so you never double tag or miss anything) just SOL? :P
I've read this sentence a few times and I'm still not sure what you're trying to say ^^;
She wanted the last page option back because many of the tagging team starts from the first page and work forward, rather than starting at the most current and working back. The last page button help with tagging old images more efficiently for images that weren't tagged properly before the tagging system was implemented.
Image
User avatar
anonymous_object
Site Admin
Posts: 1584
Joined: Tue Jan 24, 2006 2:04 pm
Location: Good old US of A
Contact:

Re: Site changes - 03/30/2012

Post by anonymous_object »

Ran wrote:She wanted the last page option back because many of the tagging team starts from the first page and work forward, rather than starting at the most current and working back. The last page button help with tagging old images more efficiently for images that weren't tagged properly before the tagging system was implemented.
Just reverse your sorting and start at page 1. This will achieve the same effect.

The issue is that the time to calculate the total number of pages for a complex set of images (like most searches) grows linearly as the number of records grows and the only way to show the last page link is to calculate the number of pages for a set of images. Shuushuu has reached a point where we have enough images, tags, and tag links that this is no longer efficient to do for every page load. This is why I have dropped the last page link.
e-shuushuu!
Image
User avatar
Yatchen
Posts: 1852
Joined: Sat May 30, 2009 11:43 am
Location: ひみつ

Re: Site changes - 03/30/2012

Post by Yatchen »

Haha, sorry, I didn't think it would be very clear. Anyway, it's a really effective system, but oh well I guess. :P
私は悪魔です。
User avatar
Isoroku22
Posts: 691
Joined: Fri Sep 04, 2009 4:17 pm
Location: Festung Europa
Contact:

Re: Site changes - 03/30/2012

Post by Isoroku22 »

Is it possible that during update some images might be lost? I'm asking since my overall image post amount is off. At first I thought that it might be late refresh but when I checked today numbers haven't change.
User avatar
anonymous_object
Site Admin
Posts: 1584
Joined: Tue Jan 24, 2006 2:04 pm
Location: Good old US of A
Contact:

Re: Site changes - 03/30/2012

Post by anonymous_object »

Isoroku22 wrote:Is it possible that during update some images might be lost? I'm asking since my overall image post amount is off. At first I thought that it might be late refresh but when I checked today numbers haven't change.
No, this should not have affected image counts. Where are you seeing these numbers?
e-shuushuu!
Image
User avatar
Isoroku22
Posts: 691
Joined: Fri Sep 04, 2009 4:17 pm
Location: Festung Europa
Contact:

Re: Site changes - 03/30/2012

Post by Isoroku22 »

I saw it on my profile, but it seems that it's alright now. After uploading today's share image post count is back to normal.
Post Reply