- Jan 17, 2015
- 5,263
- 4,956
Scenario:
1. I have a data channel that sends me string lines continously.
2. I have a function that parse that lines and can get 15 types of content.
3. I need to store that content in a database and I would like to store this in a Wordpress database, but here is where the question starts.
My first idea, is to create a Custom Post Type with 15 meta fields one for each type of content. Everytime I receive a string line, I create a new post and set 1 or more of those meta fields after parsing the string.
The problem is that I may be receiving around 10K strings per day, for a total of 300K strings per month.
Knowing how much data each WP_Post saves, I think that my wp_posts + wp_postmeta databases will be >1Gb in the first month, for just 300K pieces of light text content which is probably absurd.
So I'm looking for some pro advice, in order to optimize this a little bit if possible
Only one caveat: I need to do this under WordPress because I need the WordPress architecture to design afterwards a nice front end without a lot of extra job (I always have a hard time with front end coding)
1. I have a data channel that sends me string lines continously.
2. I have a function that parse that lines and can get 15 types of content.
3. I need to store that content in a database and I would like to store this in a Wordpress database, but here is where the question starts.
My first idea, is to create a Custom Post Type with 15 meta fields one for each type of content. Everytime I receive a string line, I create a new post and set 1 or more of those meta fields after parsing the string.
The problem is that I may be receiving around 10K strings per day, for a total of 300K strings per month.
Knowing how much data each WP_Post saves, I think that my wp_posts + wp_postmeta databases will be >1Gb in the first month, for just 300K pieces of light text content which is probably absurd.
So I'm looking for some pro advice, in order to optimize this a little bit if possible
Only one caveat: I need to do this under WordPress because I need the WordPress architecture to design afterwards a nice front end without a lot of extra job (I always have a hard time with front end coding)