-
Reading KDB serialized data from file?
Hi,
I’m working with an existing codebase which uses KDB serialization for multiple purposes.
This existing code is written in a language which is not officially supported by KDB/KX.
It seems that a number of years ago, someone implemented KDB serialization and deserialization in a library, and that since this library was written, this KDB serialization and deserialization format/library has been used to serialize data to a number of different systems, one of which is a KDB+ server.
This library is also used to serialize data to files on disk, for example.
Unfortunatly, the performance isn’t very good. This appears to be a language runtime problem and not a KDB serialization format problem.
I think that changing from this language to something like C++/C may result in improved performance.
I believe there is a C/C++ library for KDB which can be used to write KDB clients using C/C++.
However, I don’t know if this library can be used to read and write data from disk.
I had a look at this reference, and didn’t see anything which looked like it might be relevant for reading and writing files from disk containing data which has been serialized in KDB format.
– https://code.kx.com/q/interfaces/c-client-for-q/
Does anyone know if this is possible?
I am trying to avoid having to re-write the existing library in C++ myself. I could do this, but if there is a faster route, it doesn’t make much sense to re-invent the wheel.
code.kx.com
C/C++ | Interfaces | kdb+ and q documentation - kdb+ and q documentation
How to connect a C client program to a kdb+ server process
Log in to reply.