Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在以这种方式在 PHP 数据库中使用 SQLite:
$db = new PDO('sqlite:products.sqlite');
我要做很多 INSERT 查询,但看起来这些操作会稍微减慢这个过程。我知道我可以将数据库存储在内存中:
$dbmem = new PDO('sqlite::memory:');
但在该过程结束时,我想将 db 存储在磁盘上。我找不到办法做到这一点。这可能吗?如何?谢谢