Ingmar, thanks for your reply. We’ve already looked at the extreme traffic documentation, and at the Solspace’s cache module.
Actually we’ve setup an Akamai server so I guess Solspace’s module isn’t needed anymore.
After investigating I found an interesting query, which seems to return hundreds of results, but we only need to display 10 related videos :
SELECT rel_child_id, rel_parent_id FROM exp_relationships WHERE '2' IN (rel_child_id, rel_parent_id)
SELECT t.entry_id FROM exp_weblogs w, exp_weblog_titles t, exp_weblog_data d WHERE w.weblog_id = t.weblog_id AND t.entry_id = d.entry_id AND t.site_id = '1' AND t.status IN ('open') AND w.blog_name IN('video') AND t.entry_date < 1291362227 AND t.entry_id IN(2,75,343,342,340,338,337,336,334,332,331,330,329,328,326,323,322,350,312,354,353,352,317,351,344,349,345,347,735,387,389,390,391,409,410,411,709,412,414,415,416,417,418,419,420,625,624,623,432,680,679,675,444,670,667,665,590,662,589,459,460,588,461,587,659,462,586,463,585,464,465,584,583,582,581,580,579,578,577,576,575,573,574,643,784,785,790,791,800,804,832,833,834,835,843,846,850,866,868,870,871,876,879,881,891,901,903,912,916,920,933,937,961,964,966,969,974,1012,1016,1025,1032,1039,1040,1046,1052,1055,1065,1069,1073,1080,1089,1093,1103,1104,1106,1120,1125,1129,1149,1153,1160,1163,1168,445,1531,1535,2319,1661,2539,3106,2707,1761,2433,2028,2013,3190,2344,2345,2346,2347,2348,1608,1610,1643,2318,1717,2027,2434,2706,1820,1853,3192,1921,1958,2079,2078,333,2126,2125,3012,3013,2538,2191,2205,2206,2224,2242,2263,3184,2375,2376,2401,2402,3187,2493,2494,2510,413,2939,3146,3147,2601,2602,2603,2633,2634,2772,2773,2822,2823,2849,2851,2941,2951,3053,3055,3107,3180,3181,3199,3200,3189) AND t.entry_id != '2'
As you can see it select every children from parent ID (2). I’m using ed_related:entries because I need pagination, but as far as I remember it was the same using native reverse related entries. Isn’t there a way to use some lighter query ?
The solution might be to use a memcached server, so you have any experience please help 😊