Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Long loading on 11 hour mission #8

Closed
Arcanum417 opened this issue Feb 2, 2017 · 4 comments
Closed

Long loading on 11 hour mission #8

Arcanum417 opened this issue Feb 2, 2017 · 4 comments
Labels

Comments

@Arcanum417
Copy link

There is just a few missions but opening https://missionreport.417rct.org/ takes way too long, sometimes times out. Any advice ?

@Arcanum417
Copy link
Author

Found my suspect. Got really horrible IO wait. Will try to fix it with my somewhat limited knowledge of Mysql and Linux

# Query_time: 47.412674  Lock_time: 0.286362 Rows_sent: 1  Rows_examined: 117239
SET timestamp=1486065094;
SELECT
                r.*,
                (SELECT added FROM events WHERE replayId = r.id ORDER BY added DESC LIMIT 1) as lastEventTime
            FROM
                replays r
            WHERE
                hidden = 0 AND
                (
                    r.lastEventMissionTime IS NULL OR
                    r.slug IS NULL OR
                    r.playerCount IS NULL OR
                    r.playerList IS NULL
                );

@alexcroox
Copy link
Owner

It looks like you had an 11 hour mission....

R3 is not optimised for such long running missions, when the first person visits the mission list, since new missions, it caches some data, but it does need to run through the events. Unfortunately for an 11 hour mission it probably really struggled to do so.

I do have some optimisations planned which might help but R3 definitely isn't designed for 11 hour missions.

@alexcroox alexcroox changed the title Long loading Long loading on 11 hour mission Feb 3, 2017
@Arcanum417
Copy link
Author

Sure thing, let me know. I can definitely provide testing for that optimisation. I have only one RAID 1 of sata drives on the server so I can feel every query.

@alexcroox alexcroox added the v1 label Feb 4, 2017
@alexcroox
Copy link
Owner

I hope to address these issues soon, see here for more info #14

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants