1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:25:59 +00:00

increase performance of queryFeedHeadlines request

This commit is contained in:
Andrew Dolgov
2007-05-18 05:16:33 +01:00
parent 947c61863e
commit 469219162f
2 changed files with 27 additions and 4 deletions

View File

@@ -178,8 +178,13 @@
if ($op == "viewfeed") {
$print_exec_time = true;
$timing_info = getmicrotime();
print "<reply>";
if ($_GET["debug"]) $timing_info = print_checkpoint("0", $timing_info);
$omode = db_escape_string($_GET["omode"]);
$feed = db_escape_string($_GET["feed"]);
@@ -200,6 +205,8 @@
print "]]></headlines>";
if ($_GET["debug"]) $timing_info = print_checkpoint("10", $timing_info);
if (is_array($topmost_article_ids) && !get_pref($link, 'COMBINED_DISPLAY_MODE')) {
print "<articles>";
foreach ($topmost_article_ids as $id) {
@@ -208,10 +215,14 @@
print "</articles>";
}
if ($_GET["debug"]) $timing_info = print_checkpoint("20", $timing_info);
print "<counters>";
getAllCounters($link, $omode);
print "</counters>";
if ($_GET["debug"]) $timing_info = print_checkpoint("30", $timing_info);
print "</reply>";
}