Skip to content

Limit YapDatabaseViewMappings results to prevent UI hangs #360

Description

@JackQiangXJ

when in message screen, keep receive message from buddy, app will freeze 1s to 2s.

I think it caused by [self.collectionview reloaddata] in the func ----- yapDatabaseModified:

Activity

  1. chrisballinger commented on Jul 10, 2015

    @chrisballinger
    Member

    Does this happen all the time? Do you have a large number of messages? It
    may be an issue with a 3rd party framework.

    On Thu, Jul 9, 2015 at 9:05 PM, 风吹拖拉机 [email protected] wrote:

    when in message screen, keep receive message from buddy, app will freeze
    1s to 2s.

    I think it caused by [self.collectionview reloaddata] in the func -----
    yapDatabaseModified:

    —
    Reply to this email directly or view it on GitHub
    #360.

  2. JackQiangXJ commented on Jul 14, 2015

    @JackQiangXJ
    Author

    yes,it happen all the time,I think you can try to receive 50 offline messages onetime.in my opinion,it caused by when received message,app will get a yapdbnotification in messageviewcontroller, then you will reload all data in this screen.

  3. chuquangbao commented on Sep 11, 2015

    @chuquangbao

    Yeah, I have this same problems.
    And, I have more 2000 messages. App free when i am typing ( send chat and save chat state).
    How can i solve it?

  4. chrisballinger commented on Sep 11, 2015

    @chrisballinger
    Member

    We should limit the number of messages to some same default in the Yap
    mappings, and provide a way to scroll back through your history and load
    that dynamically.

    On Fri, Sep 11, 2015 at 2:21 AM, chuquangbao [email protected]
    wrote:

    Yeah, I have this same problems.
    And, I have more 2000 messages. App free when i am typing ( send chat and
    save chat state).
    How can i solve it?

    —
    Reply to this email directly or view it on GitHub
    #360 (comment)
    .

  5. changed the title [-]app Freeze[/-] [+]Limit YapDatabaseViewMappings results to prevent UI hangs[/+] on Sep 15, 2015
  6. added this to the 4.0 milestone on Sep 15, 2015
  7. modified the milestones: 4.1, 4.0 on Oct 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions