Welcome to Geeklog, Anonymous Tuesday, December 24 2024 @ 07:23 am EST
Geeklog Forums
Search limit per page
Status: offline
notivaga
Forum User
Newbie
Registered: 05/02/04
Posts: 13
I have tried to limit the number of search results per page.
First, at config.php. No way.
Then I went to searchclass.php and fixed the number, just for testing:
// $resultLimit = $_CONF['max_search_results'];
$resultLimit = 20;
NO WAY. The page shows all history results. SInce I have users with more than 1000 histories, this task takes a lot of CPU resource and also take more than 30 seconds...
Is there a way (may be a hacker way!!!!) of show a limited number of results???
Thanks in advance for anybody that can help me
Notivaga
19
18
Quote
Status: offline
notivaga
Forum User
Newbie
Registered: 05/02/04
Posts: 13
I really missed. Sorry.
If I was a programmer, I would like to rewrite the class, in order to help you to have a better sollution.
It is really a problem with users with great number of histories.
Is there somebody in the community of developers that I would write to try a systemic solution? I can give a detailed briefing, just by give the examples of users that are not working (timeout) etc.? Thanks again for your quick feedback!
If I was a programmer, I would like to rewrite the class, in order to help you to have a better sollution.
It is really a problem with users with great number of histories.
Is there somebody in the community of developers that I would write to try a systemic solution? I can give a detailed briefing, just by give the examples of users that are not working (timeout) etc.? Thanks again for your quick feedback!
12
16
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by notivaga: It is really a problem with users with great number of histories.
I know, we have the same problem here on geeklog.net.
There's already some code for paging in the search class, but I have no idea how close (or not) that is to being usable. Tony was the last one who worked on that - he may know ...
bye, Dirk
13
18
Quote
All times are EST. The time is now 07:23 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content