update
This commit is contained in:
22
netease_music/sql/statistic.sql
Normal file
22
netease_music/sql/statistic.sql
Normal file
@@ -0,0 +1,22 @@
|
||||
-- 查看需要爬取的音乐的分布
|
||||
SELECT cast( format( t_tmp.song_id / 10000000, 0) * 10000000 as UNSIGNED ) as s, count(*) as count
|
||||
FROM (
|
||||
SELECT DISTINCT song_id FROM song_album_relation
|
||||
UNION
|
||||
SELECT DISTINCT song_id FROM song_artist_relation
|
||||
) as t_tmp
|
||||
WHERE song_id NOT IN ( SELECT song_id FROM song )
|
||||
GROUP BY s
|
||||
ORDER BY s DESC
|
||||
|
||||
-- optimize table
|
||||
optimize table album;
|
||||
optimize table artist;
|
||||
optimize table comment;
|
||||
optimize table comment_progress;
|
||||
optimize table log;
|
||||
optimize table lyric;
|
||||
optimize table song;
|
||||
optimize table song_album_relation;
|
||||
optimize table song_artist_relation;
|
||||
optimize table user;
|
Reference in New Issue
Block a user