in reply to Randomization as a cache clearing mechanism
The second question is why do you have a separate version table from the nodes table. You have to do two queries anyways ... why not just query the nodes table twice? With an index on (node_id, version) and a query of "SELECT version FROM nodes WHERE node_id = ?", you don't even hit the table because all the info needed is in the index. This is an extremely fast query, made even faster with a query_cache.
Third - would it be possible to cache usernodes separate from thread nodes? I understand that the Everything engine likes to be agnostic about what a node is and does, but if you can cache usernodes separate from thread nodes, then you have a very slight performance hit from having the find the right cache, but each cache thrashes less.
Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Randomization as a cache clearing mechanism
by waswas-fng (Curate) on Nov 19, 2004 at 21:07 UTC | |
by dragonchild (Archbishop) on Nov 20, 2004 at 04:07 UTC | |
by waswas-fng (Curate) on Nov 22, 2004 at 19:36 UTC | |
by dragonchild (Archbishop) on Nov 22, 2004 at 20:28 UTC |