P
Peter Morris
Hi all
I am currently using SQLite as my database, which I found to be much faster
than SQL CE, however I still require faster binary storage.
My database consists only of a single table
create table Instances (
Oid INT Primary Key,
InstanceType Text,
InstanceData BLOB
);
create index InstancesInstanceTypeIndex on Instances(InstanceType);
I serialise / derserialise my objects myself and store my business object ID
(int) in Oid, the Type.FullName in InstanceType, and the object's serialised
data in InstanceData. My requirements are
1: Add a new record
2: Update a record by OID
3: Get a record by OID
4: Get a list of OID with a specific class name "InstanceType"
5: Get the highest OID in the database
I might need to remove a record in the future, but at the moment I don't
need to. The InstanceData consists of variable sized data.
I am wondering:
A: Is there an embedded DB for CF that is faster than SQLite?
B: Is there a non-DB way (single file) that I could achieve this which would
be faster?
Any help would be appreciated. My XML->DB import routine is taking an hour
and this is far too long.
Pete
I am currently using SQLite as my database, which I found to be much faster
than SQL CE, however I still require faster binary storage.
My database consists only of a single table
create table Instances (
Oid INT Primary Key,
InstanceType Text,
InstanceData BLOB
);
create index InstancesInstanceTypeIndex on Instances(InstanceType);
I serialise / derserialise my objects myself and store my business object ID
(int) in Oid, the Type.FullName in InstanceType, and the object's serialised
data in InstanceData. My requirements are
1: Add a new record
2: Update a record by OID
3: Get a record by OID
4: Get a list of OID with a specific class name "InstanceType"
5: Get the highest OID in the database
I might need to remove a record in the future, but at the moment I don't
need to. The InstanceData consists of variable sized data.
I am wondering:
A: Is there an embedded DB for CF that is faster than SQLite?
B: Is there a non-DB way (single file) that I could achieve this which would
be faster?
Any help would be appreciated. My XML->DB import routine is taking an hour
and this is far too long.
Pete