V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  liprais  ›  全部回复第 74 页 / 共 164 页
回复总数  3261
1 ... 70  71  72  73  74  75  76  77  78  79 ... 164  
2020-10-13 01:09:23 +08:00
回复了 edinina 创建的主题 Apple 想问问没有高刷对大伙购买 iPhone12 有影响吗
年年换新,出啥买啥
2020-10-12 13:39:17 +08:00
回复了 codecodecode 创建的主题 程序员 聊聊程序员必备的一些好习惯
"经常逛一些比较不错的博客论坛比如国内的掘金、博客园、CSDN"
认真的么.......
2020-10-10 11:57:53 +08:00
回复了 hooopo 创建的主题 问与答 如何 10 分钟内插入 13 亿条记录?
“pg 我并不熟悉,我是基于我对关系型数据库应用的推断”
笑掉大牙
2020-10-10 11:16:58 +08:00
回复了 hooopo 创建的主题 问与答 如何 10 分钟内插入 13 亿条记录?
@opengps postgres 哪来的 clustering index ?
你想想行存的怎么跳过无关的列?
2020-09-25 14:31:26 +08:00
回复了 firhome 创建的主题 macOS mac mini 的使用体验如何?
cpu 最高可以配到 65w 的 8700b ,除了核心数少了些,其他都很好。
我的自己升级到 64g 内存,平常都懒得开 9900k 的台式机了。
跟钱有关的不用 decimal 是真的心大
2020-09-23 17:32:13 +08:00
回复了 RickyC 创建的主题 MySQL 对于不同字段的 or 查询怎样建立所以查询速度快?
@zhangysh1995 看执行计划当然是看有没有命中索引啊?你觉得我贴执行计划是看啥?
2020-09-23 00:40:45 +08:00
回复了 RickyC 创建的主题 MySQL 对于不同字段的 or 查询怎样建立所以查询速度快?
mysql 8.0 是可以的
explain select * from test.mvcc where a = 1 or b = 2;
id,select_type,table,partitions,type,possible_keys,key,key_len,ref,rows,filtered,Extra
1,SIMPLE,mvcc,,index_merge,"a,b","a,b","5,5",,24,100,"Using union(a,b); Using where"
2020-09-22 23:35:11 +08:00
回复了 RickyC 创建的主题 MySQL 对于不同字段的 or 查询怎样建立所以查询速度快?
用 postgresql 随便找了个表试了试

只需要在 a,b 列上单独建索引就行,这是执行计划:

QUERY PLAN
Aggregate (cost=22119.36..22119.37 rows=1 width=8) (actual time=21.540..21.542 rows=1 loops=1)
-> Bitmap Heap Scan on a (cost=300.17..22081.89 rows=14988 width=0) (actual time=1.539..20.603 rows=15506 loops=1)
Recheck Cond: ((city_name = '北京'::text) OR (city_code = '120000'::text))
Heap Blocks: exact=3805
-> BitmapOr (cost=300.17..300.17 rows=15445 width=0) (actual time=1.153..1.154 rows=0 loops=1)
-> Bitmap Index Scan on index_a (cost=0.00..214.28 rows=11449 width=0) (actual time=0.806..0.806 rows=11534 loops=1)
Index Cond: (city_name = '北京'::text)
-> Bitmap Index Scan on index_b (cost=0.00..78.39 rows=3996 width=0) (actual time=0.346..0.346 rows=3972 loops=1)
Index Cond: (city_code = '120000'::text)
Planning Time: 0.128 ms
Execution Time: 21.566 ms
2020-09-19 19:49:07 +08:00
回复了 ixuefeng 创建的主题 Apple IOS14 下自带输入法卡顿严重
清除键盘词典可破
2020-09-18 18:46:46 +08:00
回复了 Lonersun 创建的主题 程序员 给面试者的四点建议
你简介里面的 blog 404,如果我是面试官就是一票否决,这样你接受么?
set -e
2020-09-18 00:25:05 +08:00
回复了 devlnt 创建的主题 分享发现 分享个寄超快快递的经验~
hmm
两年以前寄过顺丰,两百块钱,老家晚上五点寄第二天中午到北京,不过是文件
2020-09-15 22:58:19 +08:00
回复了 cubecube 创建的主题 Apple 不懂就问,独显的 mac pro 也卡顿掉帧么
我的 Mac mini 和 RMBP 16'都不卡,无论有没有 egpu
2020-09-14 12:45:19 +08:00
回复了 codeplay 创建的主题 Apple 英伟达收购 ARM,水果傻了吧
做生意还有撕破脸的,小学生啊?
2020-09-14 11:09:52 +08:00
回复了 molvqingtai 创建的主题 程序员 过了今天下午 8 点,时间戳就要从 16xx 开始了
@djFFFFF 直呼内行
离职证明威胁你就是给你送钱的
能力不足需要正当理由
1 ... 70  71  72  73  74  75  76  77  78  79 ... 164  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4149 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 59ms · UTC 04:04 · PVG 12:04 · LAX 21:04 · JFK 00:04
Developed with CodeLauncher
♥ Do have faith in what you're doing.