上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页
摘要: step1: 查看所有的网卡 ifconfig -a 可以看到ens33 这个不work了 stdpain@ubuntu:~$ ifconfig -a ens33: flags=4098<BROADCAST,MULTICAST> mtu 1500 ether 00:0c:29:45:7a:69 tx 阅读全文
posted @ 2022-01-13 10:41 stdpain 阅读(134) 评论(0) 推荐(0)
摘要: CMAKE 替换link 命令: 使用 gold-link set (CMAKE_EXE_LINKER_FLAGS "-fuse-ld=gold -Wl,--threads -Wl,--thread-count,16") install: ../configure --enable-gold --d 阅读全文
posted @ 2022-01-06 21:52 stdpain 阅读(92) 评论(0) 推荐(0)
摘要: pom.xml 中: <dependencies> <!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api --> <dependency> <groupId>org.apache.logging.log4 阅读全文
posted @ 2021-12-11 01:00 stdpain 阅读(1773) 评论(0) 推荐(0)
摘要: Branch 向量化 问题发现定位 昨天晚上小伙伴告诉我有一个case的性能不太理想,让我看看 这个查询长这样: SELECT SUM(CASE WHEN LO_SUPPLYCOST + 10000 > 100000 then 1 else 0 END) FROM lineorder_flat; l 阅读全文
posted @ 2021-10-24 15:52 stdpain 阅读(119) 评论(0) 推荐(0)
摘要: #~/.gdbinit python import sys sys.path.insert(0, '$GCC_HOME/share/gcc-9.2.0/python') from libstdcxx.v6.printers import register_libstdcxx_printers reg 阅读全文
posted @ 2021-10-22 16:50 stdpain 阅读(50) 评论(0) 推荐(0)
摘要: 在sum算子中,我们的实现的大概逻辑是这样的: void batch_update2(int* res, int col[],int size) { for(int i = 0;i < size; ++i) { *res += col[i]; } } GCC 没有办法向量化,因为不知道 res的地址 阅读全文
posted @ 2021-10-12 09:56 stdpain 阅读(62) 评论(0) 推荐(0)
摘要: #include <utility> #include <vector> #include <list> #include <algorithm> #include <iostream> #include <functional> #include "cmath" #define likely(x) 阅读全文
posted @ 2021-08-19 18:52 stdpain 阅读(44) 评论(0) 推荐(0)
摘要: Vim 中好用的插件 Vundle 插件管理器 git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle 编辑 ~/.vim/vimrc filetype off " required set noswapfile set 阅读全文
posted @ 2021-08-17 18:55 stdpain 阅读(153) 评论(0) 推荐(0)
摘要: dnsfix () { /mnt/c/Windows/system32/ipconfig.exe /all | grep --color=auto "DNS Servers" | cut -d ":" -f 2 | grep --color=auto -e '^ [0-9]' | sed 's/^/ 阅读全文
posted @ 2021-07-15 13:41 stdpain 阅读(69) 评论(0) 推荐(0)
摘要: OLAP 一些扯淡 行存(NSM) VS 列存(NSM) 两种存储方式各有各的好处,行存就像写日志一样一行一行的存,更新相对来说会方便一些。列存是一列数据放在一起,相对来说更新不太方便,但是压缩可能会更好一些。 假设有一个超大宽的表,有100个列,但是你的某个查询只涉及2-3个列。如果是行存那你可能 阅读全文
posted @ 2021-06-26 14:24 stdpain 阅读(214) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页