ruby - How do I improve performance of SQLite3 in Datamapper? -


I'm working in SQLite3 using DataMapper.

I was populating a table with about 14 million records. It was taking a long time I came to know that SQLite is included and can improve:

  1. Setting pragma Synchronous = OFF
  2. Block the BEGIN..COMMIT block in embedding them.

    There is one to do this.

    I am trying to find a way to do this with the datamapper, but the documentation has not yet helped. I searched the Internet and explained ways to do this in other ways but no one talks about the Data Mapper in the context of Ruby.

    My code is still:

      DataMapper.setup (: default, 'sqlite: ///path/to/DataBase.db') // Model File. Open the definition (fileName, "r"). infile | While populating the data in the database (line = infile.gets) // In the end,    

    The problem is not with the code, but scaleth itself If you are populating it with 1.4 million record possibilities, then you are going to use it in the production database.

    The SQL database is naturally slow for querying with the datamaker, so it is advisable to use mysql for quick access.



Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -