![]() |
The indexes defined in the iTrader table are not scalable at ALL. It's causing full table scans for queries and joins done when you are looking at iTrader stuff for any user. This was causing our user table to have locking issues since those queries are joined to the user table, which in turn causes everything in the forum to slow down (even if it has nothing to do with iTrader).
1. The index rateid index has no need for it to include the dateline column in the index. 2. The index rateduserid is an exact duplicate of the rateid index. This index should include rateduserid and dateline columns (it incorrectly includes rateid and dateline). 3. An index for rateduserid + buyselltrade columns is needed. I've made those changes to our itrader table and now our itrader table (which has 526,000+ iTrader ratings) does not cause issues any longer. This is what our indexes look like now: http://img197.imageshack.us/img197/1903/screenfr.png Hopefully we will see index fixes in a future version of iTrader package? :) |
Great question digitalpoint!
|
@digitalpoint:
I didn't want to change the database structure, because maybe vbenhancer is going to release v3 with the old structures and this would make an update to v3 very, very difficult. :( |
Hi
First of all thanks to keep updating this awesome plugin. My question: Is there any way to keep the rate seller button on every post and not only the first one? Thanks in advance, greetings. |
@sevenmix:
Admin CP -> Plugins & Products -> Plugin Manager Edit plug-in: iTrader Navbar Link (postbit_display_complete) Search for: PHP Code:
PHP Code:
|
Thanks very much entertain, that works perfectly :)
|
Hello, the links under usernames on the page "Left for others" lead to the iTrader page of the user who left the rating, not the user who was rated.
Solution itrader.php Change PHP Code:
PHP Code:
Change HTML Code:
<a href="{vb:raw vboptions.bburl}/itrader.php?{vb:raw session.sessionurl}u={vb:raw itrader.userid}">{vb:raw itrader.username}</a>(<strong>{vb:raw itrader.itrader_total}</strong>) HTML Code:
<a href="{vb:raw vboptions.bburl}/itrader.php?{vb:raw session.sessionurl}u=<vb:if condition="$viewuser['viewtype'] == 4">{vb:raw itrader.rateduserid}<vb:else />{vb:raw itrader.userid}</vb:if>">{vb:raw itrader.username}</a> (<strong>{vb:raw itrader.itrader_total}</strong>) |
Quote:
To make his changes you'd just put the following queries in the install/upgrade code: Code:
alter table itrader drop index rateid; And to go back to the previous indexes: Code:
alter table itrader drop index rateid; Unless you have some inside knowledge about a 3.x release, no sense in making the current version slower for no reason. |
@sung:
Thanks! Is it possible that itrader_main became very slow after these changes? (Taking around 2-3 seconds to load, all other (itrader) pages around 0,05 to 0,10 seconds) |
Is this version fully working in vb 4.0?
|
All times are GMT. The time now is 01:24 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|