inproving remove_search_post function
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexCPG-BB (forum)
Author Message
Aforo
I18N / L10N Lead Dev


Joined: Dec 27, 2007
Posts: 146

PostPost subject: inproving remove_search_post function
Posted: Thu May 14, 2009 1:01 am
Reply with quote

I trying to improving remove search post function...
function remove_search_post($post_id_sql)
includes / phpBB / functions_search.php

My problem is that the next query is very slow for my requirements:

Quote:
$sql = "SELECT word_id FROM " . SEARCH_MATCH_TABLE . "
WHERE word_id IN ($word_id_sql)
GROUP BY word_id HAVING COUNT(word_id) = 1";

I was thinking to improve it... but I think that there are other way: this query is used for getting the words that has only one time in the SEARCH_MATCH_TABLE, after this list is used for removing the words from "nuke_bbsearch_wordlist"

Only for this??? Confused

If this is true I can acept never deleting words from nuke_bbsearch_wordlist, and saving the first query.

SOmebody knows if my guess is OK????? Confused

_________________
Aforo - Google Earth - WebNaranja - DFcms.es

Aforo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Centos 5/Apache 2.2.3/MySQL:5.0.45/PHP:5.2.10 /9.2
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexCPG-BB (forum) All times are GMT
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

stopsoftwarepatents.eu petition banner
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.9126 seconds with 19 DB Queries in 0.4482 seconds
Memory Usage: 2.84 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy