<p>I have developed a high speed transactional server for transfering data over the internet so I do not need to rely upon a database implementation like MySQL to provide this. That opens up the question of which SQL version to use?</p>

<p>I really like SQLite, but I am not convinced it is industrial strength yet
What I do like is how lightweight it is on resources.</p>

<p>I loathed MySQL 8 years ago, but now it obviously IS industrial strength and my partners use it, so it is the obvious choice on the server side. If I use it I will just be connecting through "localhost" to the installed server (windows service). My concern is about the memory usage.</p>

<p>I DO NOT load the result set into memory, but I notice about 6Mb for the first connection. I am hoping subsequent connections are not an additional 6MB!</p>

<p>If I use the libmysqld.dll embedded libarary then does each new connection load a new instance of the embedded client/server code into memory? We assume so since each process will have its own in process memory...</p>

<p>Regardless, the manual states that When using the libmysqld embedded server, the memory benefits are essentially lost when retrieving results row by row because "memory usage incrementally increases with each row retrieved until mysql_free_result() is called."
<a href="http://dev.mysql.com/doc/refman/5.1/en/mysql-use-result.html" rel="nofollow noreferrer">http://dev.mysql.com/doc/refman/5.1/en/mysql-use-result.html</a></p>

<p>This means I must use the installed service. But is this as fast as the embedded server?</p>

<p>Are there any other low cost flavors that have high reliability?</p>

[{'answer_id': 19555, 'author': 'Matthew Schinckel', 'author_id': 188, 'author_profile': 'https://Stackoverflow.com/users/188', 'pm_score': 2, 'selected': False, 'text': "<p>SQLite is used in more applications than any other DB.  (Citation required).</p>\n\n<p>There are some issues with MySQL, like that it doesn't respect foreign integrity constraints.</p>\n\n<p>I'm currently a fan of PostgreSQL, which is also freely available (and, I think if you read the licensing of MySQL, actually turns out to have a more amenable license for commercial use).  It seems to be higher performance than SQLite, which probably has more to do with it being run on an SMP machine, and making use to different threads.  It also seems to be quite solid.</p>\n"}, {'answer_id': 19565, 'author': 'James Marshall', 'author_id': 1025, 'author_profile': 'https://Stackoverflow.com/users/1025', 'pm_score': 1, 'selected': False, 'text': '<p>Sorry to be pedantic, but the title should really be "Which RDBMS?" - the way it\'s phrased makes about as much sense as "Which Java?" or "<a href="http://thedailywtf.com/Articles/Which-Internet.aspx" rel="nofollow noreferrer">Which Internet?</a>"...</p>\n'}]
['https://Stackoverflow.com/questions/19458', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']