- تاریخ ثبتنام
- 2020-06-26
- نوشتهها
- 20,416
- راهحلها
- 27
- پسندها
- 3,259
- امتیازها
- 113
- سن
- 27
- محل سکونت
- England
- وب سایت
- xenforo.xyz
I want to save some integer values for posts. Here are some ideas on how to do it:
1. one, five or ten new fields for xf_post
to have a sum from post_values for threads, i can do: select sum of fields one, two, three for thread x.
Huh! With one field I am happy, but not with ten new fields.
2. I add a new table with a table_id; in this table, i save my values, in post, i save the table_id
Here it is easy to make sums, but to show anything, I need one query per post; not acceptable for...
1. one, five or ten new fields for xf_post
to have a sum from post_values for threads, i can do: select sum of fields one, two, three for thread x.
Huh! With one field I am happy, but not with ten new fields.
2. I add a new table with a table_id; in this table, i save my values, in post, i save the table_id
Here it is easy to make sums, but to show anything, I need one query per post; not acceptable for...
نام موضوع : Best practice for values in post?