上一页 1 2 3 4 5 6 7 ··· 11 下一页
摘要: Python的GC模块主要运用了引用计数来跟踪和回收垃圾。在引用计数的基础上,还可以通过“标记-清除”解决容器对象可能产生的循环引用的问题。通过分代回收以空间换取时间进一步提高垃圾回收的效率。 阅读全文
posted @ 2018-07-09 18:28 Claire_xu 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 注意项: For openssl >= 1.0.1 the valid values are tlsv1.2 tlsv1.1 and tlsv1. For openssl < 1.0.1 the valid values are tlsv1.我本机上用的openssl 1.0.2g , tls_ve 阅读全文
posted @ 2018-07-03 13:53 Claire_xu 阅读(4045) 评论(2) 推荐(0) 编辑
摘要: namespace: 通过命名空间防止变量冲突。 定义 namespace nsl { class Student { public: Student(int n,string nam,int a) { num=n;name=nam;age=a; } void get_data(); private 阅读全文
posted @ 2018-05-22 17:41 Claire_xu 阅读(130) 评论(0) 推荐(0) 编辑
摘要: webSocket: https://blog.csdn.net/wwd0501/article/details/54582912 socket 及socket server: https://www.cnblogs.com/zhangkui/p/5655428.html(涵盖tcp,udp,han 阅读全文
posted @ 2018-05-04 15:21 Claire_xu 阅读(105) 评论(0) 推荐(0) 编辑
摘要: # ================================================================= # Logging # 日志信息 # ================================================================= # Places to log to. Use multiple log_dest lin... 阅读全文
posted @ 2018-05-02 13:14 Claire_xu 阅读(1001) 评论(0) 推荐(0) 编辑
摘要: 解决:下载缺少的dll组件,放到安装目录。 报错:The procedure entry point CRYPTO_memcmp could not be located in the dynamic link library LIBEAY32.dll 解决:安装openssh,但注意mosquit 阅读全文
posted @ 2018-04-30 14:34 Claire_xu 阅读(872) 评论(0) 推荐(0) 编辑
摘要: - select * from userinfo limit 20000,10 # 数据越往后越慢 - 索引表中扫: select * from userinfo where id in (select id from userinfo limit 20000,10) # 也慢 - select * 阅读全文
posted @ 2018-03-29 19:39 Claire_xu 阅读(81) 评论(0) 推荐(0) 编辑
摘要: DBA工作:通过日志找到执行慢的sql语句 慢日志: - 执行时间 > 10 - 未命中索引 配置: - 基于内存 show variables like '%query%'; set global 变量名 = 值 - 基于配置文件 mysqld --defaults-file = '配置文件路径+ 阅读全文
posted @ 2018-03-29 19:30 Claire_xu 阅读(260) 评论(0) 推荐(0) 编辑
摘要: explain + sql语句 返回的type类型有 all 全表扫描(特殊的有limit),type为此类型时,表示该表可以优化 index 全索引扫描 range 对索引列进行范围查找 index_merge 合并索引,使用多个单列索引 ref 根据索引查找一个或多个值 eq_ref 连接时使用 阅读全文
posted @ 2018-03-29 19:21 Claire_xu 阅读(119) 评论(0) 推荐(0) 编辑
摘要: select * from (select * from tb where id<10) as B 阅读全文
posted @ 2018-03-25 17:32 Claire_xu 阅读(137) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 11 下一页