Skip to content

Enhancing Dynamic Views in Moqui: Expanding Capabilities for Flexible Query Construction #654

@Shinde-nutan

Description

@Shinde-nutan

Overview

The current implementation of Dynamic Views (EntityDynamicViewImpl) in Moqui is powerful but has some limitations that restrict its flexibility. To improve its capabilities, we propose a series of enhancements to support more complex query structures.

Identified Challenges & Areas for Improvement

  1. Lack of Conditional Joins in Dynamic Views
  • Currently, joins between member entities rely only on direct key mappings (entityKeyMaps).
  • There is no built-in way to define conditional joins dynamically (e.g., JOIN table ON condition).
  1. Limited Support for Sub-Selects & Static Views
  • Dynamic views cannot include a static view as a member entity.
  • This prevents the use of sub-queries within dynamic views, making query optimization difficult.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions