V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  cxh116  ›  全部回复第 19 页 / 共 86 页
回复总数  1701
1 ... 15  16  17  18  19  20  21  22  23  24 ... 86  
2022-01-26 10:23:01 +08:00
回复了 qping 创建的主题 耳机 百元左右的耳机推荐
就个人体验来看, 漫步者那音质还没有 QCY 好 🐶
2022-01-25 18:27:57 +08:00
回复了 fffffhan 创建的主题 问与答 macOS, 200 元以下的无线鼠标都是垃圾(doge
确实,200 以下都是鼠垃圾推荐买 Logitech MX Master 3, 不到 1000 块钱,真便宜.
2022-01-25 16:53:46 +08:00
回复了 2ruowqe9r 创建的主题 硬件 给读高中的表弟买电脑, 3~4 千价位
这价位玩游戏还是得上神船🐶...
2022-01-21 11:31:24 +08:00
回复了 vicalloy 创建的主题 iPhone 刚把手机从洗衣机里抢救出来
https://www.bilibili.com/video/BV1Fh41187W6

大事故车在维修师傅给力的情况下,可以碰.
进水车万万不能碰,因为不知道什么时候把你扔在路上了.
2022-01-20 12:11:31 +08:00
回复了 tonoon 创建的主题 Google G Suite 免费版没了!
已经换成 zoho ,5 个免费用户配合 catch all 够用了
2022-01-18 12:57:26 +08:00
回复了 deepout 创建的主题 宽带症候群 新装联通宽带感受, 2400 块的哇为终端就这?
cu 不是中国联通的缩写吗?这锅得找中国联通
2022-01-15 18:08:40 +08:00
回复了 uni 创建的主题 服务器 现在怎么买服务器比较便宜?
kimsufi 洋垃圾独服,桌面主板与内存,服务器 cpu 与机械硬盘,不过 cpu 只有 8 核。没活动时要初装费。
2022-01-14 22:13:34 +08:00
回复了 cxh116 创建的主题 问与答 单机 8 核 32G, 用什么技术才可以做单表 20 亿数据的过滤查询?
@zhoujinjing09 Kimsufi 的洋垃圾独服。
2022-01-14 16:08:21 +08:00
回复了 cxh116 创建的主题 问与答 单机 8 核 32G, 用什么技术才可以做单表 20 亿数据的过滤查询?
@dayeye2006199 @buddyy

感谢感谢,针对网友们的建议,做出以下改变尝试.

1. 改成 ClickHouse ,主键默认使用的是稀疏索引.
2. 使用 Table 自带的 Partition ,取 hash 前 8 位做分区.
2022-01-14 14:35:23 +08:00
回复了 cxh116 创建的主题 问与答 单机 8 核 32G, 用什么技术才可以做单表 20 亿数据的过滤查询?
@outdoorlife

Table "public.transactions"
Column | Type | Collation | Nullable | Default
-----------------------------+--------------------------+-----------+----------+---------
hash | character varying(66) | | |
nonce | bigint | | |
transaction_index | bigint | | |
from_address | character varying(42) | | |
to_address | character varying(42) | | |
value | numeric(38,0) | | |
gas | bigint | | |
gas_price | bigint | | |
input | text | | |
receipt_cumulative_gas_used | bigint | | |
receipt_gas_used | bigint | | |
receipt_contract_address | character varying(42) | | |
receipt_root | character varying(66) | | |
receipt_status | bigint | | |
block_timestamp | timestamp with time zone | | not null |
block_number | bigint | | |
block_hash | character varying(66) | | |
max_fee_per_gas | bigint | | |
max_priority_fee_per_gas | bigint | | |
transaction_type | bigint | | |
receipt_effective_gas_price | bigint | | |
Indexes:
"transactions_block_number" btree (block_number DESC)
"transactions_block_timestamp_idx" btree (block_timestamp DESC)
"transactions_from_address_block_timestamp_index" btree (from_address, block_timestamp DESC)
"transactions_hash" UNIQUE, btree (block_timestamp DESC, hash)
"transactions_to_address_block_timestamp_index" btree (to_address, block_timestamp DESC)
Triggers:
ts_insert_blocker BEFORE INSERT ON transactions FOR EACH ROW EXECUTE FUNCTION _timescaledb_internal.insert_blocker()
Number of child tables: 70 (Use \d+ to list them.)






EXPLAIN select * from transactions where hash='0xd22b255ddcce6af9daa39fb0b2857096314f56b3a92908a9258695b1f4591ad8' limit 1;


-[ RECORD 1 ]----------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN | Limit (cost=0.28..853977.96 rows=1 width=886)
-[ RECORD 2 ]----------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN | -> Append (cost=0.28..59778438.09 rows=70 width=886)
-[ RECORD 3 ]----------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN | -> Index Scan using _hyper_2_149_chunk_transactions_hash on _hyper_2_149_chunk (cost=0.28..50.48 rows=1 width=659)
-[ RECORD 4 ]----------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN | Index Cond: ((hash)::text = '0xd22b255ddcce6af9daa39fb0b2857096314f56b3a92908a9258695b1f4591ad8'::text)
-[ RECORD 5 ]----------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN | -> Index Scan using _hyper_2_151_chunk_transactions_hash on _hyper_2_151_chunk (cost=0.42..2496.59 rows=1 width=718)
-[ RECORD 6 ]----------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN | Index Cond: ((hash)::text = '0xd22b255ddcce6af9daa39fb0b2857096314f56b3a92908a9258695b1f4591ad8'::text)
-[ RECORD 7 ]----------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN | -> Index Scan using _hyper_2_153_chunk_transactions_hash on _hyper_2_153_chunk (cost=0.42..28396.85 rows=1 width=774)
-[ RECORD 8 ]----------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN | Index Cond: ((hash)::text = '0xd22b255ddcce6af9daa39fb0b2857096314f56b3a92908a9258695b1f4591ad8'::text)
-[ RECORD 9 ]----------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN | -> Index Scan using _hyper_2_155_chunk_transactions_hash on _hyper_2_155_chunk (cost=0.42..20489.98 rows=1 width=752)
-[ RECORD 10 ]---------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN | Index Cond: ((hash)::text = '0xd22b255ddcce6af9daa39fb0b2857096314f56b3a92908a9258695b1f4591ad8'::text)
-[ RECORD 11 ]---------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN | -> Index Scan using _hyper_2_157_chunk_transactions_hash on _hyper_2_157_chunk (cost=0.42..30703.97 rows=1 width=792)
-[ RECORD 12 ]---------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN | Index Cond: ((hash)::text = '0xd22b255ddcce6af9daa39fb0b2857096314f56b3a92908a9258695b1f4591ad8'::text)
-[ RECORD 13 ]---------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN | -> Index Scan using _hyper_2_159_chunk_transactions_hash on _hyper_2_159_chunk (cost=0.43..34880.92 rows=1 width=800)
-[ RECORD 14 ]---------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN | Index Cond: ((hash)::text = '0xd22b255ddcce6af9daa39fb0b2857096314f56b3a92908a9258695b1f4591ad8'::text)
-[ RECORD 15 ]---------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN | -> Index Scan using _hyper_2_161_chunk_transactions_hash on _hyper_2_161_chunk (cost=0.43..42360.63 rows=1 width=792)
-[ RECORD 16 ]---------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN | Index Cond: ((hash)::text = '0xd22b255ddcce6af9daa39fb0b2857096314f56b3a92908a9258695b1f4591ad8'::text)
-[ RECORD 17 ]---------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN | -> Index Scan using _hyper_2_163_chunk_transactions_hash on _hyper_2_163_chunk (cost=0.43..49846.27 rows=1 width=775)
-[ RECORD 18 ]---------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN | Index Cond: ((hash)::text = '0xd22b255ddcce6af9daa39fb0b2857096314f56b3a92908a9258695b1f4591ad8'::text)
-[ RECORD 19 ]---------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN | -> Index Scan using _hyper_2_165_chunk_transactions_hash on _hyper_2_165_chunk (cost=0.43..41498.32 rows=1 width=815)
-[ RECORD 20 ]---------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN | Index Cond: ((hash)::text = '0xd22b255ddcce6af9daa39fb0b2857096314f56b3a92908a9258695b1f4591ad8'::text)
-[ RECORD 21 ]---------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN | -> Index Scan using _hyper_2_167_chunk_transactions_hash on _hyper_2_167_chunk (cost=0.43..33756.32 rows=1 width=813)
-[ RECORD 22 ]---------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN | Index Cond: ((hash)::text = '0xd22b255ddcce6af9daa39fb0b2857096314f56b3a92908a9258695b1f4591ad8'::text)
2022-01-14 12:02:52 +08:00
回复了 cxh116 创建的主题 问与答 单机 8 核 32G, 用什么技术才可以做单表 20 亿数据的过滤查询?
@outdoorlife 目前是三机械硬盘 raid 0,速度太勉强了.

主要是 tx 表不像 block 表, 使用自增 number 做主键,而是使用 hex hash 做主键,单机分库分表 IO 瓶颈感觉意义好像不大,多机的话三件成本高,没赚钱先亏个几百块一个月还是撑不住.
2022-01-13 08:14:09 +08:00
回复了 JasonFW 创建的主题 职场话题 想请教下懂法的大神,裁员赔偿金多给了现公司要求退回
劳动法规定是 n+1 , 协议的赔偿算法是怎么算的?
2022-01-10 20:22:35 +08:00
回复了 sillydaddy 创建的主题 React Redux 的 store,与后端的数据库是什么关系?
比如简单的场景,嵌套组件传属性。从 list 传到 item 。
2022-01-09 21:28:16 +08:00
回复了 lokamir 创建的主题 路由器 我用双网卡被网管发现了
同事路过时自动切屏了?
2022-01-09 21:26:55 +08:00
回复了 lokamir 创建的主题 路由器 我用双网卡被网管发现了
到手重装系统了?没有加入域之类的? 能 100%确认没有行为管理软件?
拿钱做事,做什么事都说不清楚,做什么事?
2022-01-07 12:50:51 +08:00
回复了 LoneFireBlossom 创建的主题 macOS 如果你不想天天被 bug 气到,就不要买 Mac
@rrZ2C linux 用户表示,又不是不能用。
啊,真的不能用。源码给你了,你自己修去。
2022-01-02 10:45:55 +08:00
回复了 nbweb 创建的主题 问与答 质保期内的硬盘有三个坏的扇区可以换不?
@nbweb 机械硬盘维修的骚操作可多了,这就是为什么别人不推荐在淘宝上面买的原因。
2022-01-01 20:54:29 +08:00
回复了 KamenReborn 创建的主题 以太坊 ETH 存在折价套利机会
币本位,币价跌幅可能都大于 20%。
1 ... 15  16  17  18  19  20  21  22  23  24 ... 86  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5357 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 50ms · UTC 05:44 · PVG 13:44 · LAX 22:44 · JFK 01:44
Developed with CodeLauncher
♥ Do have faith in what you're doing.