You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following query reveals 333 posts in the test dataset (2023-06-07) that are lacking an entry in the first post table:
select id, substring(title, 1, 20), wiki_id, creator_username, created_timestamp, (select count(*) from post where post.thread_id = thread.id) as post_count, is_deleted from thread where not exists (select null from thread_first_post where thread_first_post.thread_id = thread.id) order by post_count;
Of those, 16 have zero posts associated with them. Most have 1 or 2 posts; some have more, with the top having 47 and the second having 28.
Many, but not all, of these posts have actually been deleted from their wikis. None of them are marked as deleted in the database.
I don't know if this is causing problems or not.
It's possible that this is caused by the first post in a thread being deleted, but the thread remaining in place. This is entirely speculation, though. I actually think I would only have marked the post as deleted but not actually delete it in that case, so maybe not.
I assume re-running migration 1 will one-off fix the issue for the current dataset, but I'd really like to discover what the root cause is first.
The text was updated successfully, but these errors were encountered:
The following query reveals 333 posts in the test dataset (2023-06-07) that are lacking an entry in the first post table:
Of those, 16 have zero posts associated with them. Most have 1 or 2 posts; some have more, with the top having 47 and the second having 28.
Many, but not all, of these posts have actually been deleted from their wikis. None of them are marked as deleted in the database.
I don't know if this is causing problems or not.
It's possible that this is caused by the first post in a thread being deleted, but the thread remaining in place. This is entirely speculation, though. I actually think I would only have marked the post as deleted but not actually delete it in that case, so maybe not.
I assume re-running migration 1 will one-off fix the issue for the current dataset, but I'd really like to discover what the root cause is first.
The text was updated successfully, but these errors were encountered: