Tuesday, January 8, 2013

Custom Database Software (OpenDB)

I don't want to delete this blog, but I've decided to shift its focus. I won't be having any tutorials like I originally wanted for this blog. However, I will be using this blog to document my projects and their progress. Currently I'm in the middle of several projects. All of these projects use my universal file type/database software. This library is fast, excellent for saving and loading files in a couple of formats. Right now I support csv, my custom file format, and a cfg file type of configuration. I can also load the raw data of any file into the program. Save and load times are fast. I can save a 1GB file in 10 seconds and load the same file in 1-2 seconds. A 512MB file will save nearly instantly, as long as it isn't overwriting old data (not sure why this matters).

I've always been interested in creating database software and I am pleased to say that the software library is nearly complete. It would be hard to understand without seeing the code, but I will include a couple of pictures that hopefully get the message across. Right now I don't have SQL support, but in the future I will (hopefully).

Today I worked out a couple of bugs. One of the core classes in this library is called ODBChar (OChar for short). The OChar is a vector of data that can assume the identity of any base type. This is important in programming a database since we want to make sure we can hold any type of data in a single container.

The next class up from OChar is ODBTable (OTable for short). An OTable can hold a 4 dimensional array of OChars. Both of these types can be saved and loaded very fast.

I'll show save and load times in the future.

No comments:

Post a Comment