Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
White Dwarf Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Nest
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions, OSR, & D&D Variants
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
EN Publishing
Twitter
BlueSky
Facebook
Instagram
EN World
BlueSky
YouTube
Facebook
Twitter
Twitch
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions, OSR, & D&D Variants
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Upgrade your account to a Community Supporter account and remove most of the site ads.
Community
Meta - Forums About Forums
Meta
Speed trouble found, perhaps?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="nerfherder" data-source="post: 3010647" data-attributes="member: 18305"><p>If you are searching for all data and then ordering it by date, so you may be doing a table scan. I believe you have a pair of disks in a RAID 1 configuration (i.e. mirrored) so that will hit one of the disks hard. This may then be followed by a sort on disk (if a lot of data is retrieved), this time hitting both disks hard. During a table scan, other queries will be able to use the other disk, but during a disk sort both disks will be being written to, slowing other queries dramatically.</p><p></p><p>You might want to do EXPLAIN on the SQL to get the query execution plan to see whether it is using any indexes (especially on date - you ideally want to be able to just retrieve the most recent n number, not all of them), and whether it is doing filesort (i.e. sorting on disk).</p><p></p><p>There's a bit more info here: <a href="http://mysql.com/doc/refman/5.1/en/order-by-optimization.html" target="_blank">http://mysql.com/doc/refman/5.1/en/order-by-optimization.html</a></p><p></p><p>Cheers,</p><p>Liam</p><p></p><p>P.S. feel free to send me the SQL, table and index definitions and SQL EXPLAIN output by email to nerfherder67 at hotmail dot com. I'm more an Oracle expert, but I'm sure MySQL can't be too different.</p></blockquote><p></p>
[QUOTE="nerfherder, post: 3010647, member: 18305"] If you are searching for all data and then ordering it by date, so you may be doing a table scan. I believe you have a pair of disks in a RAID 1 configuration (i.e. mirrored) so that will hit one of the disks hard. This may then be followed by a sort on disk (if a lot of data is retrieved), this time hitting both disks hard. During a table scan, other queries will be able to use the other disk, but during a disk sort both disks will be being written to, slowing other queries dramatically. You might want to do EXPLAIN on the SQL to get the query execution plan to see whether it is using any indexes (especially on date - you ideally want to be able to just retrieve the most recent n number, not all of them), and whether it is doing filesort (i.e. sorting on disk). There's a bit more info here: [url]http://mysql.com/doc/refman/5.1/en/order-by-optimization.html[/url] Cheers, Liam P.S. feel free to send me the SQL, table and index definitions and SQL EXPLAIN output by email to nerfherder67 at hotmail dot com. I'm more an Oracle expert, but I'm sure MySQL can't be too different. [/QUOTE]
Insert quotes…
Verification
Post reply
Community
Meta - Forums About Forums
Meta
Speed trouble found, perhaps?
Top