@@ -111,13 +111,9 @@ export default class SqliteHandler {
111
111
await writeToDbPromise ;
112
112
}
113
113
114
- // TODO: Remove all timers once we're ready to merge back to main
115
- console . time ( `SQLite fetch ${ type } ` ) ;
116
-
117
114
if ( totalInsert > 0 ) {
118
115
// If there were any inserts, let sqlite handle running analyze on the DB
119
116
await this . sqlite . analyzeDatabase ( ) ;
120
- console . timeLog ( `SQLite fetch ${ type } ` , 'analyze' ) ;
121
117
}
122
118
123
119
const { sql, parameters } = generateSQLExpressions ( type , queryObj , {
@@ -130,7 +126,6 @@ export default class SqliteHandler {
130
126
sql,
131
127
parameters,
132
128
} ) ;
133
- console . timeLog ( `SQLite fetch ${ type } ` , 'rows' ) ;
134
129
135
130
const { sql : countSql , parameters : countParams } =
136
131
generateSQLExpressions ( type , queryObj , {
@@ -140,7 +135,6 @@ export default class SqliteHandler {
140
135
sql : countSql ,
141
136
parameters : countParams ,
142
137
} ) ;
143
- console . timeLog ( `SQLite fetch ${ type } ` , 'count' ) ;
144
138
145
139
const results = rows . map ( ( item ) =>
146
140
JSON . parse ( item . data , ( key , value ) =>
@@ -162,7 +156,6 @@ export default class SqliteHandler {
162
156
// This isn't conventional but is better than returning an ArrayProxy
163
157
// or EmberArray since the ember store query method asserts it has to be an array
164
158
// so we can't just return an object.
165
- console . timeEnd ( `SQLite fetch ${ type } ` ) ;
166
159
records . meta = { totalItems : count [ 0 ] . total } ;
167
160
return records ;
168
161
}
@@ -260,8 +253,6 @@ export default class SqliteHandler {
260
253
return [ ...params , JSON . stringify ( datum ) ] ;
261
254
} ) ;
262
255
263
- if ( items . length > 0 ) console . time ( `SQLite insert` ) ;
264
256
await this . sqlite . insertResource ( type , items ) ;
265
- if ( items . length > 0 ) console . timeEnd ( `SQLite insert` ) ;
266
257
}
267
258
}
0 commit comments