You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let longQuery = async (table, config) => {
let db = await attachDB(config);
let finaldata = [];
await new Promise((resolve, reject) => {
db.sequentially(
`SELECT * FROM ${table}`,
[],
(row, index) => {
console.log(row, index);
finaldata.push(row);
//if (index > 5000) resolve();
},
(error) => {
if (error) reject(error);
resolve(finaldata);
}
);
});
await detachDB(db);
return finaldata;
};
I tested multiple times, and neither of those results were the same.
It often stuck at around 750, sometimes 2000, 3000, but it never reached the end, and it threw no error.
The text was updated successfully, but these errors were encountered:
pageSize: 262144
in configuration.I tested multiple times, and neither of those results were the same.
It often stuck at around 750, sometimes 2000, 3000, but it never reached the end, and it threw no error.
The text was updated successfully, but these errors were encountered: