Ivago: scraper to populate search cache #27

Open
opened 2021-04-16 09:36:55 +02:00 by Jef Roosens · 1 comment
Owner

Before we can switch to the database for requests, we need to write a helper program that can populate said database.

  • Convert Street struct to Diesel-compatible struct
  • Add necessary tables to migrations
  • Figure out how to remove outdated entries from the database (#34)
    Idea: Diesel keeps track of when an entry was last updated, so maybe we can use this to clear out any outdated entries after updating the database
Before we can switch to the database for requests, we need to write a helper program that can populate said database. - [x] Convert `Street` struct to Diesel-compatible struct - [x] Add necessary tables to migrations - [ ] Figure out how to remove outdated entries from the database (#34) Idea: Diesel keeps track of when an entry was last updated, so maybe we can use this to clear out any outdated entries after updating the database
Author
Owner

The best method will probably be to keep track of the last time a street name was inserted/update:

  • Auto-refresh the timestamp column when inserting/updating the table using a trigger
  • Each time the scraper is run, we delete any entries that are too old after the refresh
The best method will probably be to keep track of the last time a street name was inserted/update: * Auto-refresh the timestamp column when inserting/updating the table using a trigger * Each time the scraper is run, we delete any entries that are too old after the refresh
Jef Roosens changed title from Ivago: scraper to populate cache to Ivago: scraper to populate search cache 2021-04-22 12:49:11 +02:00
Commenting is not possible because the repository is archived.
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Chewing_Bever/fej#27
No description provided.