( ! ) Deprecated: Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers. in /var/www/html/wp-includes/functions.php on line 6131
Call Stack
#TimeMemoryFunctionLocation
10.0000484096{main}( ).../index.php:0
20.0000484448require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.13464101208require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.13514130312include( '/var/www/html/wp-content/themes/twentyfifteen/archive.php ).../template-loader.php:125
50.13514130312get_header( $name = ???, $args = ??? ).../archive.php:19
60.13514130528locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.13514130624load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.13514131168require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.13534138576wp_head( ).../header.php:18
100.13534138576do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.13534138792WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.13534138792WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.13554142208wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.13554142208do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.13554142424WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.13554142424WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.13564268728twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.13584270248wp_style_add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.php:440
190.13584270248WP_Styles->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.wp-styles.php:245
200.13584270248WP_Dependencies->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../class-wp-styles.php:385
210.13584270248_deprecated_argument( $function_name = 'WP_Dependencies->add_data()', $version = '6.9.0', $message = 'IE conditional comments are ignored by all supported browsers.' ).../class-wp-dependencies.php:317
220.13584270568wp_trigger_error( $function_name = '', $message = 'Function WP_Dependencies->add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:5925
230.13584271320trigger_error( $message = 'Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:6131

( ! ) Deprecated: Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers. in /var/www/html/wp-includes/functions.php on line 6131
Call Stack
#TimeMemoryFunctionLocation
10.0000484096{main}( ).../index.php:0
20.0000484448require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.13464101208require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.13514130312include( '/var/www/html/wp-content/themes/twentyfifteen/archive.php ).../template-loader.php:125
50.13514130312get_header( $name = ???, $args = ??? ).../archive.php:19
60.13514130528locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.13514130624load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.13514131168require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.13534138576wp_head( ).../header.php:18
100.13534138576do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.13534138792WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.13534138792WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.13554142208wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.13554142208do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.13554142424WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.13554142424WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.13564268728twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.16354272424wp_style_add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.php:444
190.16354272424WP_Styles->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.wp-styles.php:245
200.16354272424WP_Dependencies->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../class-wp-styles.php:385
210.16354272424_deprecated_argument( $function_name = 'WP_Dependencies->add_data()', $version = '6.9.0', $message = 'IE conditional comments are ignored by all supported browsers.' ).../class-wp-dependencies.php:317
220.16354272744wp_trigger_error( $function_name = '', $message = 'Function WP_Dependencies->add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:5925
230.16364272968trigger_error( $message = 'Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:6131

索引有哪些优点?

索引有哪些优点?
1、  通过创建唯一性索引,可以保证数据库表中每一行数据的唯一性。


2、  可以大大加快数据的检索速度,这也是创建索引的最主要原因。


3、  可以加速表和表之间的连接,这在实现数据的参考完整性方面特别有意义。


4、  在使用分组和排序子句进行数据检索时,同样可以显著减少查询中分组和排序的时间。


索引有哪些缺点?
1、  创建索引和维护索引要耗费时间,这种时间随着数据量的增加而增加。


2、  除了数据表占数据空间之外,每一个索引还要占一定的物理空间,如果要建立聚簇索引,需要的空间就会更大。


3、  当对表中的数据进行增加、删除和修改的时候,索引也要动态的维护,这样就降低了数据的维护速度。


索引有哪些类型?
1、 普通索引


这是最基本的索引类型,而且它没有唯一性之类的限制。


2、 唯一性索引


这种索引和前面的“普通索引”基本相同,但有一个区别:索引列的所有值都只能出现一次,即必须唯一。


3、主键


它是一种特殊的唯一索引,不允许有空值。


4、全文索引


MySQL从3.23.23版开始支持全文索引和全文检索。


单列索引和组合索引:
单列索引就是把索引单独建立在一个字段上。


组合索引复合索引就是一个索引创建在两个列或者多个列上。在搜索时,当两个或者多个列作为一个关键值时,最好在这些列上创建复合索引。


建立和使用索引有哪些注意事项:
1、           索引要建立在经常进行select操作的字段上。这是因为,如果这些列很少用到,那么有无索引并不能明显改变查询速度。相反,由于增加了索引,反而降低了系统的维护速度和增大了空间需求。


2、           索引要建立在值比较唯一的字段上。这样做才是发挥索引的最大效果。,比如主键的id字段,唯一的名字name字段等等。如果索引建立在唯一值比较少的字段,比如性别gender字段,寥寥无几的类别字段等,刚索引几乎没有任何意义。


3、           对于那些定义为text、 image和bit数据类型的列不应该增加索引。因为这些列的数据量要么相当大,要么取值很少。


4、           当修改性能远远大于检索性能时,不应该创建索引。修改性能和检索性能是互相矛盾的。当增加索引时,会提高检索性能,但是会降低修改性能。当减少索引时,会提高修改性能,降低检索性能。因此,当修改性能远远大于检索性能时,不应该创建索引。


5、           在WHERE和JOIN中出现的列需要建立索引。


6、           在以通配符 % 和 _ 开头作查询时,MySQL索引是无效的。但是这样索引是有效的:select * from tbl1 where name like ‘xxx%’,所以谨慎的写你的SQL是很重要的。