Rafael dos Santos Silva 526e76ced2 FIX: Use PostgreSQL 'ON CONFLICT' to deal with race condition
On busy sites, concurrent requests to insert into post_timings can
occur, which was dealt with using Ruby exceptions.

This moves the handling to PostgreSQL which makes it a bit faster,
and prevents a spam of ERROR in the database logs.
2019-04-29 16:34:42 -03:00
..
2018-07-16 14:19:07 +08:00
2018-07-16 14:19:07 +08:00
2018-12-04 10:48:16 +01:00
2019-01-11 14:30:19 -05:00
2019-02-08 12:12:38 +01:00
2019-04-26 10:36:21 +08:00
2019-04-02 13:19:14 +08:00
2019-04-26 18:23:27 +10:00
2019-04-26 10:36:21 +08:00
2019-04-11 12:37:24 +08:00
2019-04-09 13:27:32 +08:00
2018-07-16 14:19:07 +08:00
2019-04-02 13:19:14 +08:00
2018-07-16 14:19:07 +08:00
2018-07-16 14:19:07 +08:00
2018-07-16 14:19:07 +08:00
2019-01-11 14:30:19 -05:00
2019-04-16 15:47:16 +08:00
2018-07-16 14:19:07 +08:00
2019-01-07 18:11:43 +01:00
2019-04-26 18:23:27 +10:00
2019-04-09 13:27:32 +08:00
2019-04-01 10:11:08 +08:00
2019-04-26 18:23:27 +10:00
2019-04-26 18:23:27 +10:00
2019-04-23 18:25:28 +08:00
2019-04-26 10:36:21 +08:00
2018-07-16 14:19:07 +08:00
2019-04-02 13:19:14 +08:00
2019-04-08 17:03:26 +05:30
2019-04-26 18:23:27 +10:00
2018-07-16 14:19:07 +08:00