def query_by_postid(postid, limit=5):
        '''
        Query history of certian records.
        '''
        recs = TabPostHist.select().where(
            TabPostHist.post_id == postid
        ).order_by(
            TabPostHist.time_update.desc()
        ).limit(limit)
        return recs
Query history of certian records.