# Hoe importeerde berichten als gelezen te markeren

**URL:** <https://meta.discourse.org/t/how-to-mark-imported-posts-as-read/162696>\
**Category:** Product Support\
**Created:** [1 september 2020 om 19:11 UTC](https://meta.discourse.org/t/how-to-mark-imported-posts-as-read/162696 "2020-09-01T19:11:59Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [2 september 2020 om 20:58 UTC](https://meta.discourse.org/t/how-to-mark-imported-posts-as-read/162696/5 "2020-09-02T20:58:00Z")

</div>

You need to create records in the `topic_users` table and in the `post_timings` table. You can either use the methods in the [TopicUser](https://github.com/discourse/discourse/blob/master/app/models/topic_user.rb) and [PostTiming](https://github.com/discourse/discourse/blob/master/app/models/post_timing.rb) models or do it more efficiently by using SQL.

Here’s an example from the base import script which marks posts as read for their authors. You’d need to adapt it for your use case.

> <https://github.com/discourse/discourse/blob/e0d9232259f6fb0f76bca471c4626178665ca24a/script/import_scripts/base.rb#L750-L773>

---

_[View the full topic](https://meta.discourse.org/t/how-to-mark-imported-posts-as-read/162696)._
