shrugginG 最近的时间轴更新
shrugginG

shrugginG

V2EX 第 631790 号会员,加入于 2023-05-30 20:18:06 +08:00
shrugginG 最近回复了
6 天前
回复了 shrugginG 创建的主题 MySQL mysql 小白请教大佬一个问题
@HolderRoberts
-- auto-generated definition
create table phishy_urls
(
id int auto_increment
primary key,
url varchar(2048) not null,
url_sha256 char(64) not null,
ecrimex tinyint(1) default 0 null,
ecrimex_brand varchar(255) null,
phishtank tinyint(1) default 0 null,
phishtank_brand varchar(255) null,
openphish tinyint(1) default 0 null,
openphish_brand varchar(255) null,
created_at timestamp default CURRENT_TIMESTAMP not null,
is_crawled tinyint(1) default 0 null,
page_url varchar(2048) null,
is_accessible tinyint(1) null,
is_completed tinyint(1) null,
status_code smallint unsigned null,
title varchar(255) collate utf8mb4_unicode_ci null,
ip varchar(39) null,
port int null,
updated_at timestamp default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP,
traffic_captured tinyint(1) default 0 null,
last_crawled_time datetime null,
constraint url_sha256_unique
unique (url_sha256)
);
8 天前
回复了 shrugginG 创建的主题 MySQL mysql 小白请教大佬一个问题
@sagaxu 我用 explain 测试过了
```
EXPLAIN
INSERT INTO phishing_intelligence.phishtank_database (phish_id, url, url_sha256, phish_detail_url, submission_time,
verified, verification_time, online, target, etag)
VALUES ('8746113', 'https://free-5477419.webadorsite.com/',
'66c5960b2546bb5d7807213f8d0b6c574ac9b329aca4cc9db6ded49dbc7c4662',
'http://www.phishtank.com/phish_detail.php?phish_id=8746113', '2024-09-06T11:43:49', 'yes',
'2024-09-06T11:53:23', 'yes', 'Other', '7c90038b7ae65365a87c0ef8615e98e4');
```
结果是
```
[
{
"id": 1,
"select_type": "INSERT",
"table": "phishtank_database",
"partitions": null,
"type": "ALL",
"possible_keys": null,
"key": null,
"key_len": null,
"ref": null,
"rows": null,
"filtered": null,
"Extra": null
}
]
```
我看了这应该就是全表扫描了吧,根本没有用到唯一索引
8 天前
回复了 shrugginG 创建的主题 MySQL mysql 小白请教大佬一个问题
@ttoh 我还真测试过 drop 掉 url_sha256 的唯一索引,但是测试发现 drop 前后插入速度基本没有区别
9 天前
回复了 shrugginG 创建的主题 MySQL mysql 小白请教大佬一个问题
@Gilgamesh7 感谢大佬,2s 是不包含获取 url 的时间的,就是单纯的 sql 执行时间
@cnevil 我承认自己对于这个问题没有足够的思考,也建议您仔细阅读一下别人的问题,我在问题中并没有表明 ipv4 和 mac 长度一致的想法
好想法,码住回来看
直接 clash-verge-rev ,我自己的实验室的 ubuntu 机器 22.04 在用
122 天前
回复了 wsseo 创建的主题 程序员 vscode 右侧的滚动条看不清怎么办?
"workbench.colorCustomizations": {
"scrollbarSlider.background": "#AF5F5F",
"scrollbarSlider.activeBackground": "#AF5F5F"
// "scrollbar.shadow": "#ff0000"
},
颜色可以自定义
162 天前
回复了 xxxxdingdong 创建的主题 Node.js 关于自动化测试的正确方式
playwright
网安专业不读博你去找计算机专业也没有问题,投简历只要是计算机大类都没什么区别,只不过可能硕士期间既要学习网安知识又要一手准备找工作
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1834 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms · UTC 00:53 · PVG 08:53 · LAX 17:53 · JFK 20:53
Developed with CodeLauncher
♥ Do have faith in what you're doing.