@@ -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}
0 commit comments