上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页
摘要: 如何批量删除Excel中的空单元格?Exce... 阅读全文
posted @ 2018-10-19 09:57 王图思睿 阅读(550) 评论(0) 推荐(0)
摘要: 使用 MongoDB 的 findAndModify 命令来快速高效进行数据操作语法:db.Collections.findAndModify(query, null, null, true, null, fal... 阅读全文
posted @ 2018-10-16 16:10 王图思睿 阅读(88) 评论(0) 推荐(0)
摘要: 教训:MongoDB 在分片后的集合上进行 db.collection.count() 操作时,出现结果不准确的现象,需要采用聚合的方法获取集合的 count 结果插入数据后,使用 Studio 3T 查看数据量... 阅读全文
posted @ 2018-10-16 16:03 王图思睿 阅读(281) 评论(0) 推荐(0)
摘要: 学习记录:python3 多线程 (threading ) + 锁 (Lock) + 控制线程数量 (Semaphore) 的实例 import threadingimport timedef sub(num):... 阅读全文
posted @ 2018-10-15 17:52 王图思睿 阅读(73) 评论(0) 推荐(0)
摘要: 1、背景mysql 建表使用 create table as 报错 [Err] 1786 - Statement violates GTID consistency: CREATE TABLE ... SELEC... 阅读全文
posted @ 2018-10-12 16:09 王图思睿 阅读(882) 评论(0) 推荐(0)
摘要: #以字符串长度为条件在实际项目中常常会有根据字段值长度大小进行限制查询,例如查询商品名称过长或过短的商品信息,具体的实现方式可能有多种,在此记录常见的两种实现使用 $where 查询(性能稍逊一些)//查询商品名... 阅读全文
posted @ 2018-10-09 14:35 王图思睿 阅读(277) 评论(0) 推荐(0)
摘要: 仅记录工作中常用的命令,随时补充,如有错误,欢迎指正。 1、创建普通索引:db.集合名.createIndex({"字段名":1})2、字段批量重命名:db.集合名.update({}, {$rename : {... 阅读全文
posted @ 2018-09-29 09:38 王图思睿 阅读(43) 评论(0) 推荐(0)
摘要: 工作需要使用 python 处理 mongodb 数据库两亿数据量去重复,需要在大数据量下快速判断数据是否存在参考资料:https://segmentfault.com/q/1010000000613729网上了... 阅读全文
posted @ 2018-09-27 11:40 王图思睿 阅读(80) 评论(0) 推荐(0)
摘要: 最近在学习Python,当然就学到了布隆过滤器pybloomfilter,然而安装的过程很曲折,Bloom Filter实际上是由一组哈希函数和一个字节列表组成. 详细介绍可以参考百度百科安装过程错误及解决办法:... 阅读全文
posted @ 2018-09-27 10:38 王图思睿 阅读(107) 评论(0) 推荐(0)
摘要: 最近在用MySQL做一些数据处理,会用到group_concat函数,比如类似下面一条语句:select aid,group_concat(bid) from tbl group by aid limit 1;s... 阅读全文
posted @ 2018-09-26 09:42 王图思睿 阅读(489) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页