embedded-database

Best Embedded SQL DB for write performance?

爱⌒轻易说出口 提交于 2019-12-05 09:06:12
Has anybody done any benchmarking/evaluation of the popular open-source embedded SQL DBs for performance, particularly write performance? I've some 1:1 comparisons for sqlite, Firebird Embedded, Derby and HSQLDB (others I am missing?) but no across the board comparisons... Also, I'd be interested in the overall developer experience for any of these (for a Java app). This benchmark from db4o might be helpful. It includes, JavaDB (Built on top of Derby), HSQLDB, SqlLite. It seems HSQLDB out-performs its counterparts, especially when writing is concerned. H2, as a successor of HSQLDB, is faster

Best way to create schema in embedded HSQL database

China☆狼群 提交于 2019-12-05 03:26:25
I'm currently using the following setup to create a schema in an embedded database before running my tests against it In my application context <jdbc:embedded-database id="dataSource" type="HSQL"> <jdbc:script location="classpath:createSchema.sql" /> </jdbc:embedded-database> createSchema.sql create schema ST_TEST AUTHORIZATION DBA; hibernate properties <properties> <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" /> <property name="hibernate.default_schema" value="ST_TEST"/> <property name="hibernate.hbm2ddl.auto" value="create-drop" /> <property name="hibernate

How to use the Embedded PostgreSQL Server Java component as a separate service?

蓝咒 提交于 2019-12-04 14:11:12
问题 I am trying to create a comprehensive integration test suite for a RESTful (Services) Java-based application that runs in Tomcat(7.x) and depends on an Postgresql (9.x) instance. Further, I would like to be able to run this suite as a self-contained process, exclusively from maven 3.x, if possible, by using the maven failsafe plugin. That way, the tests can be run across the 3 major platforms (Mac OSX, Linux & Windows). From what I have learned, I believe that the key to making this happen is

Which local database fits my situation?

寵の児 提交于 2019-12-04 13:32:26
I will be building a set of applications. One of these apps is unattended application (written in VB6) which will write data it receives from various sources to a local database. All the other applications (will be written in VS 2008/c# 3.0) will read this data for mostly reporting reasons. I don't want SQL Server/MySql/Sybase or even its express editions, because distributing it is a problem (e.g. requires separate install, etc...). I am looking for a local database that has drivers for both VB6 (so probably OLEDB, or ODBC if I have to settle for it) and ADO.NET. It would also be nice, if the

If possible how can one embed PostgreSQL?

守給你的承諾、 提交于 2019-12-04 09:54:17
问题 If it's possible, I'm interested in being able to embed a PostgreSQL database, similar to sqllite. I've read that it's not possible. I'm no database expert though, so I want to hear from you. Essentially I want PostgreSQL without all the configuration and installation. If it's possible, tell me how. 回答1: Unless you do a major rewrite of code, it is not possible to run Postgres "embedded". Either run it as a separate process or use something else. SQLite is an excellent choice. But there are

Is there a lightweight, embeddable, key/value database? (something like diet couchdb) [closed]

≡放荡痞女 提交于 2019-12-04 07:53:35
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I was wondering if there was a lightweight, embeddable, key/value database out there. Something like a lightweight Couchdb (RESTful, key/value, etc) where you just send it the key and it responds with appropriate values. Thanks! 回答1: On the Related Projects page of the

In-memory DBMS's for unit testing

大兔子大兔子 提交于 2019-12-04 05:10:11
I am looking for satisfactory options for unit testing my .NET DAL classes; since they're DAL classes, they access the database directly using ADO.NET. Presently I use an instance of a MSSQL database for the testing, but was wondering what faster options there are---since unit tests need to run as quickly as possible, an in-memory solution would be ideal. I should also mention that I have tied myself to TSQL since I'm only ever going to be using a Microsoft platform. Given that you state: I should also mention that I have tied myself to TSQL since I'm only ever going to be using a Microsoft

What's the appropriate way to test code that uses MySQL-specific queries internally

瘦欲@ 提交于 2019-12-04 03:06:45
I am collecting data and store this data in a MySQL database using Java. Additionally, I use Maven for building the project, TestNG as a test framework, and Spring-Jdbc for accessing the database. I've implemented a DAO layer that encapsulates the access to the database. Besides adding data using the DAO classes I want to execute some queries which aggregate the data and store the results in some other tables (like materialized views). Now, I would like to write some testcases which check whether the DAO classes are working as they should. Therefore, I thought of using an in-memory database

Spring Boot. @DataJpaTest H2 embedded database create schema

末鹿安然 提交于 2019-12-04 02:48:49
问题 I have couple of entities in my data layer stored in particular schema. For example: @Entity @Table(name = "FOO", schema = "DUMMY") public class Foo {} I'm trying to setup H2 embedded database for integration testing of my data layer. I'm using @DataJpaTest annotation for my tests to get H2 embedded database configured automatically. However, the creation of tables fails because schema DUMMY is not created at DB initialization. Any ideas on how to create schema before creation of tables in

Simple database application for Windows

谁说胖子不能爱 提交于 2019-12-04 00:27:32
I need to build a simple, single user database application for Windows. Main requirements are independence from windows version and installed software. What technologies (language/framework) would you recommend? My preference for language is the Visual Basic. EDIT: What about VB.Net and SQL Server Compact Edition? I would recommend Sqlite . It's completely self-contained, and public domain so there are no license issues at all. Single user or multi user? For single user, the answer would be SQLite For multi user (or multithread), try MySQL or PostgreSQL . Since your requirement is a windows