How to reduce SQLite memory consumption?
问题 I'm looking for ways to reduce memory consumption by SQLite3 in my application. At each execution it creates table with the following schema: (main TEXT NOT NULL PRIMARY KEY UNIQUE,count INTEGER DEFAULT 0) After that, the database is filled with 50k operations per second. Write only. When an item already exists, it updates "count" using an update query (I think this is called UPSERT). These are my queries: INSERT OR IGNORE INTO table (main) VALUES (@SEQ); UPDATE tables SET count=count+1 WHERE