~dpm/ubuntu-rssreader-app/enable-translations

« back to all changes in this revision

Viewing changes to databasemodule_v2.js

  • Committer: Tarmac
  • Author(s): Roman Shchekin
  • Date: 2013-09-20 18:08:13 UTC
  • mfrom: (68.1.2 grid-optimization)
  • Revision ID: tarmac-20130920180813-8s4hjzig4kwki1x4
My speedups. I've got between 150 and 500 % performance improvement depending on amount of articles in Tab.

Approved by Ubuntu Phone Apps Jenkins Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
503
503
 
504
504
    db.transaction(function(tx) {
505
505
        dbResult = tx.executeSql("SELECT t1.* FROM feed t1 INNER JOIN feed_tag t2 ON t1.id = t2.feed_id WHERE tag_id =?", [tag_id])
506
 
        console.log("loadFeedsFromTag:", tag_id, "SELECTED: ", dbResult.rows.length)
 
506
        // console.log("loadFeedsFromTag:", tag_id, "SELECTED: ", dbResult.rows.length)
507
507
    }
508
508
    )
509
509
    return dbResult;