-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data generation #1
Comments
since protobuf is widely used, and based on the benchmark result, CapN is not faster than protobuf, I will go with protobuf https://github.com/gogo/protobuf
|
Don't you think using serialization could be over designed? tsv/csv file may be enough for this kinda of simple jobs. |
@czheo kind of, but the csv lib in golang is more hard to use in some sense. I will try csv first and see if it easy to use,optimize stuff can be leave to later when there is a need. |
That's what we have after #13
|
for json serialization and deserialization, using |
Time series database write is different from other NoSQL, typically it's
key
a string for describe the source iecpu.idle
timestamp
when does the event happenvalue
numeric value, integer or floattags
k=>v
for adding attributes to dataExamples
Since generate complex data cost a lot resources, it's a wise idea to save the data to the disk.
while influx-comparison use the bulk form of the target database, I think it's better to use a general serialization format, and store meta data in another file (you can even do some dirty trick to the meta
to change the load without generating the data)
Serialization
The text was updated successfully, but these errors were encountered: