mirror of
https://gitee.com/novel_dev_team/novel-plus
synced 2026-07-20 17:54:59 +08:00
优化更新策略,支持同时启动多个爬虫程序来加快小说更新速率
This commit is contained in:
@@ -19,5 +19,13 @@
|
||||
on t1.id = t2.book_id and t1.id = #{bookId}
|
||||
</select>
|
||||
|
||||
<update id="updateCrawlLastTime">
|
||||
update book set crawl_last_time = #{currentDate}
|
||||
where id in
|
||||
<foreach item="book" collection="books" open="(" separator="," close=")">
|
||||
#{book.id}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user