whether you use slice or limit/offset to do paging, there will be problems as long as you sort and then paginate. Why?
there is a problem when PS: only shows that the amount of data per page is less than the total amount of data. Why?
result = session_read.query(cls).order_by(cls.guild_activity.desc()).slice((page_index - 1) * page_size, page_index * page_size).all()
result = session_read.query(cls).order_by(cls.guild_activity.desc()).offset((page_index - 1) * page_size).limit(page_size).all()