Closed jhje0316 closed 4 weeks ago
I just wanted to follow up on my previous issue. After doing a bit more testing, I realized that I was mistakenly creating a new PGlite instance every time I called the API to execute SQL commands.
I’ll go ahead and close this issue since it's resolved.
I have been testing the insertion and execution of SQL commands with thousands of rows using IndexedDB. I noticed that the file size increases with each SQL execution.
For example, executing the query:
results in a permanent file size increase of approximately 0.3 MB(might vary depending on the size of the inserted data), as observed in
Chrome DevTools under Application > Storage > Usage
.I am concerned about this growth because I expect a user to execute thousands of SQL queries within a single database file in my service, and I want to keep the file size as small as possible.
Questions: