I drove myself crazy trying to figure out why two versions of my project were executing IDENTICAL SQLite queries (the entire Sub was identical) with vastly different execution times.
After a couple of hours—and even trying to get help from Copilot—I discovered that ONLY unchecking the B4XTable library made the slow project run just as fast as the other one.
Naturally, I removed everything related to B4XTable and now I only display the data in the Logs window; but believe me, what was slowing down the processing was simply the "presence" of the B4XTable library!
After a couple of hours—and even trying to get help from Copilot—I discovered that ONLY unchecking the B4XTable library made the slow project run just as fast as the other one.
Naturally, I removed everything related to B4XTable and now I only display the data in the Logs window; but believe me, what was slowing down the processing was simply the "presence" of the B4XTable library!