How to use thinkphp table sharding I preset 10 tables & nbsp; which are & nbsp; table_1, table_2, table_3 .... table_10 sets partition in the Model: protected & nbsp; $ partition & nbsp; = & nbsp; how to use thinkphp table sharding
I preset 10 tables: table_1, table_2, table_3... table_10
Partition is set in Model:
Protected $ partition = array (
'Field' => 'id ',
'Type' => 'id ',
'Exppr' => '',
'Num' => 10,
);
GetPartitionTableName () is also used ()
The official document indicates that the current data must be input. Which data table should be operated based on data analysis?
What data is passed in to the current data? the results of each experiment are combined queries! The current table name cannot be found!
Please help me! Or is there any proper method! Thinkphp sub-table partition: More
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.