update
This commit is contained in:
@@ -49,3 +49,18 @@ optimize table song;
|
|||||||
optimize table song_album_relation;
|
optimize table song_album_relation;
|
||||||
optimize table song_artist_relation;
|
optimize table song_artist_relation;
|
||||||
optimize table user;
|
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;
|
@@ -25,7 +25,7 @@ async function fetchAll({ args = {} }) {
|
|||||||
for (let i = 0; i < songIds.length; i++) {
|
for (let i = 0; i < songIds.length; i++) {
|
||||||
await global.checkIsExit();
|
await global.checkIsExit();
|
||||||
const songId = songIds[i];
|
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 {
|
try {
|
||||||
await fetch({ songId: songId });
|
await fetch({ songId: songId });
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
4
todo.txt
4
todo.txt
@@ -1,6 +1,6 @@
|
|||||||
-- 本地
|
-- 本地
|
||||||
node index --utils song --min 1900000000 --max 2000000000 --order DESC --limit 2000 # ing
|
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服务器
|
-- Linux服务器
|
||||||
node index --utils song --min 1290000000 --max 1500000000 --order DESC --limit 2000 # ing
|
node index --utils song --min 1290000000 --max 1500000000 --order DESC --limit 2000 # ing
|
||||||
-- Windows服务器
|
-- 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 1800000000 --max 2000000000 --order DESC --limit 2000
|
||||||
node index --utils lyric --min 0 --max 400000000 --order ASC # ing
|
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
|
||||||
|
|
||||||
|
|
||||||
后期:
|
后期:
|
||||||
|
Reference in New Issue
Block a user