Sqlite3 performance differences between the file database and the in-memory database

Source: Internet
Author: User
Tags sqlite database

It's not a convincing test, it's my experience.

Through the Pandas.read_csv function, the total of 1.44GB of 164 CSV files in turn (into Dataframe object, and add 2 series, and then the dataframe through the Pandas.to_ The SQL function is written as a 1.23GB SQLite database file, and since the fourth file is imported, it is becoming slower and less expensive, with a total of two hours.

and Sqlite3.connect (': Memory: ') is only 2 minutes to write to the database, of course, not yet dumped to disk, I believe the time to dump should not be too much.

Sqlite3 performance differences between the file database and the in-memory database

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.