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
Solved

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

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
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…

840 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