Skip to content

Commit 94a5676

Browse files
authored
chore: 🤖 Remove timer console statements (#2985)
1 parent a2b2088 commit 94a5676

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

‎addons/api/addon/handlers/sqlite-handler.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,9 @@ export default class SqliteHandler {
111111
await writeToDbPromise;
112112
}
113113

114-
// TODO: Remove all timers once we're ready to merge back to main
115-
console.time(`SQLite fetch ${type}`);
116-
117114
if (totalInsert > 0) {
118115
// If there were any inserts, let sqlite handle running analyze on the DB
119116
await this.sqlite.analyzeDatabase();
120-
console.timeLog(`SQLite fetch ${type}`, 'analyze');
121117
}
122118

123119
const { sql, parameters } = generateSQLExpressions(type, queryObj, {
@@ -130,7 +126,6 @@ export default class SqliteHandler {
130126
sql,
131127
parameters,
132128
});
133-
console.timeLog(`SQLite fetch ${type}`, 'rows');
134129

135130
const { sql: countSql, parameters: countParams } =
136131
generateSQLExpressions(type, queryObj, {
@@ -140,7 +135,6 @@ export default class SqliteHandler {
140135
sql: countSql,
141136
parameters: countParams,
142137
});
143-
console.timeLog(`SQLite fetch ${type}`, 'count');
144138

145139
const results = rows.map((item) =>
146140
JSON.parse(item.data, (key, value) =>
@@ -162,7 +156,6 @@ export default class SqliteHandler {
162156
// This isn't conventional but is better than returning an ArrayProxy
163157
// or EmberArray since the ember store query method asserts it has to be an array
164158
// so we can't just return an object.
165-
console.timeEnd(`SQLite fetch ${type}`);
166159
records.meta = { totalItems: count[0].total };
167160
return records;
168161
}
@@ -260,8 +253,6 @@ export default class SqliteHandler {
260253
return [...params, JSON.stringify(datum)];
261254
});
262255

263-
if (items.length > 0) console.time(`SQLite insert`);
264256
await this.sqlite.insertResource(type, items);
265-
if (items.length > 0) console.timeEnd(`SQLite insert`);
266257
}
267258
}

‎addons/api/addon/workers/sqlite-worker.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ const methods = {
3737
print: console.log,
3838
printErr: console.error,
3939
});
40-
console.log(`SQLite Version: ${sqlite3?.version.libVersion}`);
4140
const dbName = await promiseWorker.postMessage({
4241
method: 'getDatabaseName',
4342
});

0 commit comments

Comments
 (0)