We are developing a tiny database that will contain data on the use of our software. Therefore, in our programs / websites we will call a small service that registers some data about the session and the completed action. Thus, we can see which parts of our programs are heavily used, which are the most common use cases, etc.
The part I'm struggling with is how we persist in different actions. Since we do not know what exact actions and parameters will be required by all applications and future applications, it is difficult to determine the data structure.
Currently, it looks something like this:
Actions
--------------
+ Id
+ ActionTypeId
+ SessionId
+ TimeStamp
+ Data01
+ Data02
+ Data03
...
+ Data10
+ DataBlob
I especially doubt all data fields. In practice, this will either be a path to many columns, or too few. All concatenating them in one field will be hell for a request.
Are there any suggestions?
source
share