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
mysql errors, thread lists not updating
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="Psionicist" data-source="post: 984859" data-attributes="member: 1874"><p>What Piratecat said. </p><p></p><p>When you search, the forum software will -not- go through every single post on the forum looking for the words you searched for, rather, it will consult two tables in the database.</p><p></p><p>First of all, the search function will go through the word index, a table with two columns (a numeric ID and the actual word) and several thousand rows.</p><p></p><p>[code][color="#CCCCCC"]Sample word index:</p><p></p><p>+------+------------------+</p><p>| | |</p><p>| ID | Word |</p><p>| | |</p><p>+------+------------------+</p><p>| 1102 | attack |</p><p>+------+------------------+</p><p>| 1103 | gnome |</p><p>+------+------------------+</p><p>| 1104 | minigun |</p><p>+------+------------------+</p><p>| 1105 | scoot |</p><p>+------+------------------+</p><p>| 1106 | away |</p><p>+------+------------------+</p><p>| 1107 | quickly |</p><p>+------+------------------+</p><p>| 1108 | asap |</p><p>+------+------------------+</p><p>[/color][/code]</p><p></p><p>Example: You searched for "gnome". "Gnome" is word 1103 in the word index.</p><p></p><p>The search function will now consult the search index. The seach index is a huge index (a search index can be well over 20 million rows for a site such as En World) with information where you can find a specific word. </p><p></p><p>[code][color="#CCCCCC"]Sample search index:</p><p>+--------+--------+---------+</p><p>| | | |</p><p>| wordid | postid | intitle |</p><p>| | | |</p><p>+--------+--------+---------+</p><p>| 1103 | 102314 | 0 |</p><p>+--------+--------+---------+</p><p>| 1103 | 012312 | 1 |</p><p>+--------+--------+---------+</p><p>| 1103 | 005565 | 0 |</p><p>+--------+--------+---------+</p><p>| 1104 | 128935 | 0 |</p><p>+--------+--------+---------+</p><p>| 1105 | 200956 | 0 |</p><p>+--------+--------+---------+</p><p>[/color][/code]</p><p></p><p>The search function will find that word 1103 (the word gnome) can be found in post 102314, 12312 and 5565. Search will now check in which thread you can find these posts, and display them as the search result.</p><p></p><p>This is very ingenious, if the search function would have gone through every single post in the whole database, the server would die within seconds.</p><p></p><p>The search index and word index update whenever you post a new thread or reply to a thread, so, when Eric tried to post his thread, the search index was borked.</p></blockquote><p></p>
[QUOTE="Psionicist, post: 984859, member: 1874"] What Piratecat said. When you search, the forum software will -not- go through every single post on the forum looking for the words you searched for, rather, it will consult two tables in the database. First of all, the search function will go through the word index, a table with two columns (a numeric ID and the actual word) and several thousand rows. [code][color="#CCCCCC"]Sample word index: +------+------------------+ | | | | ID | Word | | | | +------+------------------+ | 1102 | attack | +------+------------------+ | 1103 | gnome | +------+------------------+ | 1104 | minigun | +------+------------------+ | 1105 | scoot | +------+------------------+ | 1106 | away | +------+------------------+ | 1107 | quickly | +------+------------------+ | 1108 | asap | +------+------------------+ [/color][/code] Example: You searched for "gnome". "Gnome" is word 1103 in the word index. The search function will now consult the search index. The seach index is a huge index (a search index can be well over 20 million rows for a site such as En World) with information where you can find a specific word. [code][color="#CCCCCC"]Sample search index: +--------+--------+---------+ | | | | | wordid | postid | intitle | | | | | +--------+--------+---------+ | 1103 | 102314 | 0 | +--------+--------+---------+ | 1103 | 012312 | 1 | +--------+--------+---------+ | 1103 | 005565 | 0 | +--------+--------+---------+ | 1104 | 128935 | 0 | +--------+--------+---------+ | 1105 | 200956 | 0 | +--------+--------+---------+ [/color][/code] The search function will find that word 1103 (the word gnome) can be found in post 102314, 12312 and 5565. Search will now check in which thread you can find these posts, and display them as the search result. This is very ingenious, if the search function would have gone through every single post in the whole database, the server would die within seconds. The search index and word index update whenever you post a new thread or reply to a thread, so, when Eric tried to post his thread, the search index was borked. [/QUOTE]
Insert quotes…
Verification
Post reply
Community
Meta - Forums About Forums
Meta
mysql errors, thread lists not updating
Top