Solved

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

Posted on 2010-11-19
3
730 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
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:
Kdo 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Join & Write a Comment

Introduction: I have seen many questions on EE and elsewhere, asking about how to find either gaps in lists of numbers (id field, usually) ranges of values or dates overlapping date ranges combined date ranges I thought it would be a good …
SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now