上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页
摘要: 1 { 2 "aggs": {}, 3 "from": 0, 4 "query": { 5 "bool": { 6 "must": [], 7 "must_not": [], 8 "should": [ 9 { 10 "bool": { 11 "must": [ 12 { 13 "term": { 阅读全文
posted @ 2021-06-28 12:01 许伟强 阅读(532) 评论(0) 推荐(0)
摘要: 使用MySQL慢日志对线上的部分慢查询精准定位; 1、 MySQL慢日志是什么 2、 MySQL慢日志怎么开启(有哪些配置项) 3、我想看看我当前的MySQL的慢日志配置项配置情况 4、MySQL慢日志文件内容读取 重启mysql服务: service mysql restart tips: mys 阅读全文
posted @ 2021-06-26 15:59 许伟强 阅读(105) 评论(0) 推荐(0)
摘要: { "aggs":{ }, "from":0, "query":{ "bool":{ "must":[ { "terms":{ "ID":[ "1", "2" ] } } ] } }, "size":10, "sort":[ ], "track_total_hits":true } terms 全等 阅读全文
posted @ 2021-06-23 17:01 许伟强 阅读(424) 评论(0) 推荐(0)
摘要: Elastic的字符串属性分成:keyword 和 text ,一般我们会把所有字符串设置为 keyword: 默认字段属性的设置规则: PUT /test_idx { "settings": { "number_of_shards": 3, "number_of_replicas": 1 }, " 阅读全文
posted @ 2021-06-16 20:49 许伟强 阅读(639) 评论(0) 推荐(0)
摘要: 菜鸟教程: Date.prototype.format = function(fmt){ var o = { "M+" : this.getMonth()+1, //月份 "d+" : this.getDate(), //日 "h+" : this.getHours(), //小时 "m+" : t 阅读全文
posted @ 2021-05-27 20:06 许伟强 阅读(162) 评论(0) 推荐(0)
摘要: 学习文章: https://www.cnblogs.com/zhangziqiu/archive/2011/03/30/computercode.html https://baike.baidu.com/item/%E8%A1%A5%E7%A0%81 总结: 原码 反码 补码都是标识机器数的一种方式 阅读全文
posted @ 2021-05-06 17:15 许伟强 阅读(168) 评论(0) 推荐(0)
摘要: 背景: 优化一下邮件内容(HTML)存储,美滋滋~ 使用: 清空一下缓冲区,include进来HTML -渲染,最重要的是压缩哦,正则自己掂量掂量,别把不该干掉的干掉了哈。 <?php /** * 渲染HTML模板 * * @param string $template 模板路径 /data/tes 阅读全文
posted @ 2021-05-06 16:52 许伟强 阅读(427) 评论(0) 推荐(0)
摘要: 最近有一道面试题关于JavaScript的对象深拷贝 - 学习一下写个总结: 平时也会遇到一个对象赋值给另一个变量时候,算不算拷贝呢,如果对象属性有 function 之类的呢,或者引用其他变量会怎么样呢? 首先我们说一下,JavaScript的变量类型有 基本数据类型或者引用数据类型; 总结: 有 阅读全文
posted @ 2021-05-06 16:37 许伟强 阅读(114) 评论(0) 推荐(0)
摘要: 1 首先要明白JavaScript的变量的作用域:全局\块级\函数内局部变量 2 而var可以重复定义、const 是常量不可更改且声明是必须初始化、let 和 const 不能重复定义这些不是最大的区别 看了很多篇文章: https://www.runoob.com/js/js-let-const 阅读全文
posted @ 2021-05-06 15:59 许伟强 阅读(60) 评论(0) 推荐(0)
摘要: 背景: 设置了一个用户表 talent 列有学历ID、学历、姓名,请问我的学历ID是设置 int not null default 0 合适呢还是 int default null 合适呢? 参考: 《高性能MySQL》 - 尽量避免使用null: a. 可为null值的列使得索引更加复杂,因为可为 阅读全文
posted @ 2021-04-21 23:59 许伟强 阅读(355) 评论(1) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页