Change storage to single files
Closed this issue · 6 comments
I would like to drop CSV files and store changes in single files with the name $TIMESTAMP.php
The file then would contain an array with the data (created using var_export($foo, true)
).
Advantages:
- No more merge conflicts if two people add a line to the CSV file
- The whole change would not be in on single line and is so easier to review
I would suggest differentiating single file names between environments; even if it can be rare, a timestamp collision may occur.
Say $TIMESTAMP-$ENV_ID or something like this
What do you think about it?
you mean the user name? Yes we can do that.
But I am using microseconds timestamps, a collision is (almost) impossible :)
But I am using microseconds timestamps, a collision is (almost) impossible :)
I apologize but I've read the Black Swan by Taleb so I tend to be pessimistic about "things that should not happen" :-)
Is it a good book?
N. N. Taleb is that kind of authors you will love or hate. Consider I'm basing my choices in work and life based on some of his visions. I suggest to give him a try.
Merged and tested on branch dev-2.0, seems to work properly thus I close issue.