First Query Very Slow (~3s) on Chrome (64.0.3282.167)
オープン
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 13.7k
- フォーク
- 1.1k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I'm seeing slow first queries against an database loaded via XHR. All the queries are fairly trivial, and after the first they complete quickly. Here's a picture of the chrome dev-tools:

Firefox (58.0.2) doesn't have this problem, so perhaps something browser related?
The following JS recreates this:
let db = null;
let experimentUrl = 'https://storage.googleapis.com/axelbrooke-public/experiments/toxic-comment-clf/experiments.sqlite';
(function() {
let xhr = new XMLHttpRequest();
xhr.open('GET',
experimentUrl,
true);
xhr.responseType = 'arraybuffer';
xhr.onload = function (e) {
let uInt8Array = new Uint8Array(this.response);
db = new SQL.Database(uInt8Array);
console.log(new Date(), 'Database created.');
console.log(queryDb('SELECT * FROM hparams'));
console.log(new Date(), 'Database loaded.');
app();
};
xhr.send();
})();
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Reproduce the issue using the provided XHR and SQL.Database example, comparing the first SELECT in Chrome 64 with Firefox 58. Start with the Chrome DevTools timing shown in the report and the database-loading path; done means the cause of the slow first query is identified and the regression or behavior is addressed with a verified reproduction.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, sqlite
- 領域
- database, web-dev
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100