From 00fa195c70fb426d495e24992f3c62f9125ae801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=91=98=E5=B0=8F=E5=A2=A8?= <2291200076@qq.com> Date: Thu, 6 Oct 2022 22:45:10 +0800 Subject: [PATCH] update --- netease_music/sql/statistic.sql | 15 +++++++++++++++ netease_music/src/getInfo/lyricInfoUtils.js | 2 +- todo.txt | 4 ++-- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/netease_music/sql/statistic.sql b/netease_music/sql/statistic.sql index a9bd575..6b813f0 100644 --- a/netease_music/sql/statistic.sql +++ b/netease_music/sql/statistic.sql @@ -49,3 +49,18 @@ optimize table song; optimize table song_album_relation; optimize table song_artist_relation; optimize table user; + +-- 查询单个数据库里面各个表所占磁盘空间大小包括其索引的大小 +SELECT + table_schema AS '数据库', + table_name AS '表名', + table_rows AS '记录数', + TRUNCATE (data_length / 1024 / 1024, 2) AS '数据容量(MB)', + TRUNCATE (index_length / 1024 / 1024, 2) AS '索引容量(MB)', + TRUNCATE ((data_length + index_length) / 1024 / 1024 / 1024, 2) AS '总容量(GB)' +FROM + information_schema.TABLES +WHERE + table_schema = 'neteasemusic' +ORDER BY + table_rows DESC; \ No newline at end of file diff --git a/netease_music/src/getInfo/lyricInfoUtils.js b/netease_music/src/getInfo/lyricInfoUtils.js index 77b5017..9df633d 100644 --- a/netease_music/src/getInfo/lyricInfoUtils.js +++ b/netease_music/src/getInfo/lyricInfoUtils.js @@ -25,7 +25,7 @@ async function fetchAll({ args = {} }) { for (let i = 0; i < songIds.length; i++) { await global.checkIsExit(); const songId = songIds[i]; - console.log(`${i + 1}/${songIds.length} | lyric: ${songId}`); + console.log(`${i + 1}/${songIds.length} | lyric: ${songId} | ${args.min ?? "?"}-${args.max ?? "?"}`); try { await fetch({ songId: songId }); } catch (err) { diff --git a/todo.txt b/todo.txt index 3fa372e..c878f25 100644 --- a/todo.txt +++ b/todo.txt @@ -1,6 +1,6 @@ -- 本地 node index --utils song --min 1900000000 --max 2000000000 --order DESC --limit 2000 # ing -node index --utils song --min 1800000000 --max 1900000000 --order DESC --limit 2000 +node index --utils song --min 1800000000 --max 1900000000 --order DESC --limit 2000 # ing 在Windows服务器上 -- Linux服务器 node index --utils song --min 1290000000 --max 1500000000 --order DESC --limit 2000 # ing -- Windows服务器 @@ -31,7 +31,7 @@ node index --utils comment --min 0 --max 400000000 --order ASC --limi node index --utils lyric --min 1800000000 --max 2000000000 --order DESC --limit 2000 node index --utils lyric --min 0 --max 400000000 --order ASC # ing -- 本机 -node index --utils lyric --min 400000000 --max 1000000000 --order ASC --limit 2000 # ing +node index --utils lyric --min 400000000 --max 1000000000 --order ASC # ing 后期: