mirror of
https://github.com/201206030/novel-plus.git
synced 2025-06-25 04:56:37 +00: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