I'm looking for a thread-safe database.
Preferably an embedded, sql database.
What are the best choices in terms of speed ?
--
ionel. 6 1579
SQLite is very easy to get started with. I loaded up a 9 Mb file of
process data and the performance was pretty good after I indexed on the
join columns (increased db file size to 15Mb).
Supports transactions, cursors, typed data. I *think* it is
thread-safe, but I'm not positive.
But it's great as a simple embedded SQL database.
-- Paul
SQLite rocks, its definitely the way to go. Its binary is around 250K,
but it supports more of the SQL standard than MySQL. It CAN be thread
safe, but you have to compile it with a threadsafe macro enabled..
check out www.sqlite.org for more info. The windows binaries
apparently are compiled with this option, but the Linux binaries are
not, so if you're on Linux, you'll have to compile it yourself, which
isn't hard.
If it's embedded, is there any reason why it should be SQL? A solid
alternative could me MetaKit, which has Python bindings: http://www.equi4.com/metakit/python.html
"""
Buzzwords - Metakit is an embeddable database which runs on Unix,
Windows, Macintosh, and other platforms. It lets you build applications
which store their data efficiently, in a portable way, and which will
not need a complex runtime installation. In terms of the data model,
Metakit takes the middle ground between RDBMS, OODBMS, and flat-file
databases - yet it is quite different from each of them.
Technology - Everything is stored variable-sized yet with efficient
positional row access. Changing an existing datafile structure is as
simple as re-opening it with that new structure. All changes are
transacted. You can mix and match software written in C++, Python, and
Tcl. Things can't get much more flexible...
"""
I've never tried MetaKit (most of my development has been against the
ZODB object database, or against RDBMS servers), but I've heard good
things about it.
Ed Hotchkiss wrote: On 15 Sep 2005 21:31:27 -0700, *gsteff* wrote:
SQLite rocks, its definitely the way to go. Its binary is around 250K, but it supports more of the SQL standard than MySQL. It CAN be thread safe, but you have to compile it with a threadsafe macro enabled. [...]
Is this for running an SQL database, then using a separate python module to access the database?
SQLite being an embedded database, if you use it via pysqlite
( http://pysqlite.org/), it is part of your Python application, i. e.
there is no separate SQL server and client, the SQL engine is just part
of your application and the data is located in one local file.
pysqlite itself is a little larger than SQLite, of course, for example
the statically linked binary extension module on Windows is 331.776
bytes in the latest version:
C:\>dir c:\Python24\lib \site-packages\pysqli te2
Datenträger in Laufwerk C: ist Lokaler Datenträger
Volumeseriennum mer: 8C7F-873C
Verzeichnis von c:\Python24\lib \site-packages\pysqli te2
26.08.2005 11:00 <DIR> .
26.08.2005 11:00 <DIR> ..
16.05.2005 21:11 2.525 dbapi2.py
12.09.2005 10:49 2.425 dbapi2.pyc
12.09.2005 10:49 2.425 dbapi2.pyo
26.08.2005 11:00 <DIR> test
12.09.2005 00:56 331.776 _sqlite.pyd
16.05.2005 21:11 1.016 __init__.py
12.09.2005 10:49 131 __init__.pyc
12.09.2005 10:49 131 __init__.pyo
7 Datei(en) 340.429 Bytes
-- Gerhard
On 15 Sep 2005 22:22:30 -0700, Jeff Shell <eu*********@gm ail.com> wrote: If it's embedded, is there any reason why it should be SQL? A solid alternative could me MetaKit, which has Python bindings:
Or Berkeley DB, which has bindings in the standard Python library: the bsddb
module.
But we know almost nothing about the original poster's requirements, so
any advice may be completely meaningless.
/Jorgen
--
// Jorgen Grahn <jgrahn@ Ph'nglui mglw'nafh Cthulhu
\X/ algonet.se> R'lyeh wgah'nagl fhtagn!
ionel napisa³(a): I'm looking for a thread-safe database. Preferably an embedded, sql database.
What are the best choices in terms of speed ?
Interbase/Firebird is thread-safe, is SQL-compliant. And once it was
embedded. In a tank. M1 Abrams, specifically. At least the tale tells
that... ;)
--
Jarek Zgoda http://jpa.berlios.de/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Angie |
last post by:
Hello,
My name is Angela Mastrodonato. I'm a web designer who would like the
assistance of a php programmer. Some of my clients have requested more
dynamic web sites, and I am in the beginning phases of learning php.
When it comes to common services, such as shopping carts, I have found
ways to modify existing scripts.
However, I have been getting requests for services that seem specific,
and require a more customized approach than...
|
by: ionel |
last post by:
I'm looking for a thread-safe database.
Preferably an embedded, sql database.
What are the best choices in terms of speed ?
--
ionel.
|
by: Michael Sherf |
last post by:
I'm looking for "real life" experiences of companies running DB2 in an
24x7 OLTP environment. Seems like most folks are using DB2 for DSS
applications, rather than OLTP. If your DB2 production environment
meets the following criteria, I'd love to hear from you:
1. Using DB2 as an OLTP database
2. Using DB2 via custom apps (not 3rd party apps like Peoplesoft etc.)
3. DB2 database instance >300GB
4. Have used DB2 for at least 1 year,...
|
by: Matthias Kwiedor |
last post by:
Hi!
In my current Project i use MS Access as Database. I know some Databases
like SQL Server, Oracle, mySQL and the DB/2 from IBM, but no more "Stand-
alone" Databases.
Did anyone know a Database, where i can use like MS Access (this means,
without needing to install a Database like mySQL or SQL Server) and has
more performance as MS Access? The last time i used MS Access (about 4
years ago) i had some performance Problems with more...
|
by: Johann Blake |
last post by:
I am looking for a good solution on how to implement data access in an
application so that there is a clean separation between the data access
layer, the business layer and the GUI layer. I am looking for a robust
solution for a major application. Almost every developer seems to come
up with a completely different solution. While many of them are not
bad, I really want a very good one.
My database is SQL Server 2000 and I am using Visual...
| |
by: Shapper |
last post by:
Hello,
I am looking for a good Menu Control.
I found a few ones in Control Gallery of this web site.
Some Examples:
http://www.telerik.com/Default.aspx?PageId=1415
http://www.componentart.com/menu/default.aspx
I would like to receive some opinions about these 2 or sugestions of any
|
by: shs |
last post by:
Hi,
I've got the second db opened from the first db. However after the initial
opening of the second db, when loading different forms, they are not visible.
I'm using the followig code to open the "FindParent" subform
Dim SecondApp As New Access.Application
SecondApp.OpenCurrentDatabase "db2.mdb"
SecondApp.RunCommand acCmdAppMaximize
SecondApp.Forms!homemenu!SubMenu.SourceObject = "FindParent"
|
by: gluchu |
last post by:
how to public ms database ? any sugestions ?i have to publish a dynamic page. maybe something in asp or access pages ? i need an instruction step by step . PLEASE help me !
|
by: AMDRIT |
last post by:
I am looking for better concrete examples, as I am a bit dense, on design
patterns that facilitate my goals. I have been out to the code project,
planet source code, and microsoft's patterns and practices site and it just
isn't sinking in all that clearly to me.
Currently we have code in production and it all works well, however it is
not the way we want it. We know that we can implement a better design plan
to improve performance,...
|
by: Mephster |
last post by:
Hi all I have been going though a booked called "C++ Primer plus"
inwhich I got from a second hand store for 2.99CAD anyway after doing
some reading and trying everything in the book up to chapter 5 ( where
I am at) I realised that I am enjoying this quite a bit even though I
don't understand alot of it now I am interested in learning C++
could anyone point me in the right dirrection in learning this ( I am
a poor person lol) or any...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |