Forum Discussion

big's avatar
big
Adept
10 years ago

missing posts by crawling to an exact date

Hi,

 

in our use case we want to get all the new posts that chanced since the last visit. Therefor we use a timestamp to check what’s new.

In some cases we miss posts with this method. Maybe this is because the posts have something like a “moderation gap” that provides the posts some seconds later to the API than their postdate?

 

As a workaround we add 60 seconds to our check date. This results in more request but lower loss rate.

 

Is there a way to get all posts without an overlap?

 

Thanks,

Martin

  • DougS's avatar
    DougS
    Khoros Oracle

    If moderation is turned on, you are most likely going to have a lag before messages show up in the community.  You could make another call with the moderation_scope parameter to get unmoderated messages as well (see the posts/recent call documentation).