Sam Saffron 7f841dc21f
PERF: avoid race conditions when creating topic links
Previously the code was very race condition prone leading to
odd failures in production

It was re-written in raw SQL to avoid conditions where rows
conflict on inserts

There is no clean way in ActiveRecord to do:

Insert, on conflict do nothing and return existing id.

This also increases test coverage, we were previously not testing
the code responsible for crawling external sites directly
2020-05-13 16:05:57 +10:00
..
2019-11-19 10:21:06 +00:00
2020-05-05 13:46:57 +10:00
2020-04-28 15:59:39 +05:30
2019-11-29 15:49:08 +00:00
2020-04-22 14:27:01 -04:00
2019-10-21 12:08:20 +01:00
2020-05-05 13:46:57 +10:00
2019-05-13 15:24:24 +01:00
2020-04-28 15:59:39 +05:30
2020-05-05 13:46:57 +10:00
2019-12-04 13:33:51 -05:00
2020-04-28 15:59:39 +05:30
2020-05-05 13:46:57 +10:00
2020-04-28 15:59:39 +05:30
2019-10-21 12:08:20 +01:00
2020-01-27 15:28:56 +01:00
2020-04-28 15:59:39 +05:30
2020-04-28 15:59:39 +05:30
2020-01-27 15:28:56 +01:00
2019-10-17 16:58:22 +11:00