04 2021 档案

摘要:问题 使用pyppeteer爬取数据时,goto指定页面报错pyppeteer.errors.PageError: net::ERR_CERT_AUTHORITY_INVALID,通过抓包请求过程如下: 当前请求被重定向了,切换到https请求,因此需要走TLS协议,但是Client hello后没 阅读全文
posted @ 2021-04-25 16:31 肆玖爺 阅读(4623) 评论(3) 推荐(0)
摘要:间隙锁加锁分析 以下案例均基于以下表及数据 CREATE TABLE `t` ( `id` int(11) NOT NULL, `c` int(11) DEFAULT NULL, `d` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `c` (`c`) 阅读全文
posted @ 2021-04-08 10:03 肆玖爺 阅读(169) 评论(0) 推荐(0)
摘要:可见性分析 CREATE TABLE `t` ( `id` int(11) NOT NULL, `k` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB; insert into t(id, k) values(1,1),(2,2); 阅读全文
posted @ 2021-04-07 15:52 肆玖爺 阅读(378) 评论(0) 推荐(0)
摘要:Index Nested-Loop Join(NLJ) 从驱动表上逐行读取数据,在被驱动表上通过索引匹配数据,假设驱动表N表数据,被驱动表M条数据 Index Nested-Loop Join Batched Key Access(BKA,NLJ算法的优化) NLJ算法,每条数据都需要被驱动表两个索 阅读全文
posted @ 2021-04-06 17:01 肆玖爺 阅读(169) 评论(0) 推荐(0)
摘要:callback执行异常处理 如果Request请求成功后,在解析文本时异常,如下所示: def parse_details(self, response): ... item['metres'] = round(float( response.xpath('/html/body/section[1 阅读全文
posted @ 2021-04-02 14:15 肆玖爺 阅读(857) 评论(0) 推荐(0)