Solved

How well does SQLite perform as an in-memory database?

Posted on 2010-11-19
3
734 Views
Last Modified: 2012-05-10
I have read quite a bit of positive and negative things about SQLite, it seems that some people hate it because of problems, and others love it because it runs to well!?!?

Can anyone tell me of their experiences with SQLite, I'm wondering if I could use it to run a small in-memory database, a few tables with a few hundred rows max.
0
Comment
Question by:ShaunDumas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 58

Assisted Solution

by:cyberkiwi
cyberkiwi earned 250 total points
ID: 34179862
SQLite should serve quite well as an in-memory database in most cases.
It is one among many alternative, for .Net you may consider plain xml files for a few hundred rows or even SQL Server Ce.
SQLite has some quirks and limitation that you just have to get use to, such as,

putting strings (accidentally) into integer columns is not a bug
http://www.sqlite.org/faq.html#q3

The SQL syntax supported is also pretty basic, but if you can get by with simple, then you're set to go.
0
 
LVL 45

Accepted Solution

by:
Kent Olsen earned 250 total points
ID: 34179884
Hi Shaun,

My experience is that depends on what you're trying to do.

I use SQLite in several applications, but the data is 10s of thousands of rows scattered over several tables.  SQLite allows me the ability to treat it like "a real database", particularly the ability to add queries and reports with standard SQL.  It's not a true "in memory" usage as data is read/written from/to the database (disk) as needed.

If your data is relational, that is the data in one table is related to data in another, SQLite might be the way to go.  On the other hand, if all you're trying to do is store and manage a couple of hundred rows of data you might be better served keeping the data in an array or vector.  SQLite is about 100,000 lines of source code and that's quite a bit to add to a project just to manage a small amount of data.


Good Luck,
Kent
0
 

Author Closing Comment

by:ShaunDumas
ID: 34180426
Great insights, thanks!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question