Skip to content

feat(er-diagram): improve diagram layout #1755

Description

@ElDeveloper

Problem

When rendering the ER diagram for a large database, the layout of the tables can be cumbersome. Seems like tables are sorted in distinct rows based on the number of incoming/outgoing relationships.

Related to #1335

Proposed solution

It would be helpful if:

  • The layout of the ER graph could make a better use of the horizontal and vertical space on the screen rather than the mostly vertical layout (see cartoon diagram below).
  • Tables were grouped together and styled with different colors according to their relationships. TablePro would need the concept of a "group".

FWIW, dbschema has a very robust layout algorithm that does a great job at automatically grouping tables together and laying them out in a way that's easy to search through and read.

Image

Alternatives considered

Moving tables around is helpful, however it would be nice to be able to style (change color) the tables and group them for readability. See this cartoon diagram of how things would look like in dbschema for the same DB as the cartoon above.

Image

Related database type

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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