Skip to content

Performance freeze when opening parent namespace page due to automatic deep-expansion of child blocks #970

Description

@ARudiuk

Search first

  • I searched and no similar issues were found

What Happened?

Similar to #619 (However, #619 also specifies properties being expanded, whereas this focus is strictly on block depth expansion)

When opening a parent namespace page that contains a massive hierarchy of sub-pages and blocks, Logseq attempts to fully expand every single child block/page. For large graphs, this causes the application to freeze entirely.

For example: I have a namespace that goes like Pathology/Category 1/Category 2/Specific entity
If I try to open Pathology then the page essentially freezes because i have around 20k blocks in total when you combine all the subcategories and Logseq tries to open all the child blocks.

Reproduce the Bug

  1. Create a namespace with multiple children
  2. You will see that in the most upper level namespace every single entity is displayed

Expected Behavior

You can control to what depth the children nodes are shown

Screenshots

Image

Files

No response

Browser, Desktop or Mobile Platform Information

macOS, latest overnight build

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions