浏览代码

add batch process explanation

david 7 年之前
父节点
当前提交
6c3d78d193
共有 1 个文件被更改,包括 22 次插入4 次删除
  1. 22 4
      README.md

+ 22 - 4
README.md

@@ -1,7 +1,3 @@
-# CLI
-
-To be re-implemented
-
 # Requirements
 # Requirements
 
 
 * S3 (minio can be used for a local instance).
 * S3 (minio can be used for a local instance).
@@ -9,6 +5,24 @@ To be re-implemented
 * Postgresql
 * Postgresql
 * Python3.6
 * Python3.6
 
 
+# Batch process
+
+To remove the initial roundtrip when looking for books, I keep a cache in postgres.  
+To populate this cache, I triggered each of the bot's `LIST` command, at `#ebooks`
+
+I executed:
+
+```
+@pondering42
+@dv8
+@shytot
+@dragnbreaker
+@Xon-new
+```
+
+Then fetched all of the files, unarchived and concatenated them together.
+On the resulting file I ran `parse.py` which inserts it into postgres.
+
 # Services
 # Services
 
 
 ## Installation
 ## Installation
@@ -55,3 +69,7 @@ if ($http_user_agent ~* "armv7l") {
     rewrite ^/(.*)$ /books/kindle;
     rewrite ^/(.*)$ /books/kindle;
 }
 }
 ```
 ```
+
+# CLI
+To be re-implemented
+