Skip to content
This repository has been archived by the owner on Aug 26, 2020. It is now read-only.

Denormalized sub-entities #266

Open
grechaw opened this issue Mar 5, 2017 · 4 comments
Open

Denormalized sub-entities #266

grechaw opened this issue Mar 5, 2017 · 4 comments
Assignees
Milestone

Comments

@grechaw
Copy link
Contributor

grechaw commented Mar 5, 2017

When putting entity instances into documents, one always chooses one to be the root, and others to embed or denormalize into the document structure.

Entity Services in MarkLogic 9 does not provide this vocabulary, but repeated use of the code generation indicates that it could be automated significantly with this extra concept.

  1. Entry point of a module is known.
  2. Expectations of whether a reference property contains an embedded instance or a reference to an external one.
  3. Refinement of extraction template to require less customization.
@grechaw grechaw added this to the 9.0-2 milestone Mar 7, 2017
@grechaw grechaw modified the milestones: 9.0-3, 9.0-2 Mar 20, 2017
@grechaw
Copy link
Contributor Author

grechaw commented Jun 8, 2017

This issue is a proposed design change, but it needs more grounding in scenario to map the capability to an implementation. Probably not for 9.0-3?

@jmakeig jmakeig self-assigned this Jun 8, 2017
@jmakeig
Copy link
Contributor

jmakeig commented Jun 8, 2017

The other issue is more of an existential one: What is an entity? Is (the concept of) an “address” an entity? If you were the Post Office, maybe, but for many applications an address is a rich piece of data that only exists in the context (i.e. as a sub-property) of something else, like a Person or and Order.

As a Data Architect, I want to be able to define and reuse sub-entities, like Address. For example, in my Order entity the shipTo property is not a string, but a type Address. That “type” definition is defined elsewhere and, like xs:string can be reused by reference in multiple entities.

@jmakeig
Copy link
Contributor

jmakeig commented Jun 9, 2017

  • Anything with sub-structure is an entity
  • Need a way to describe “important” or “top-level” entities, i.e. those that represent true business entities
  • Need a way to tell the materialization how to (completely) denormalize within another entity

@jmakeig jmakeig changed the title Define es:top-level or equivalent Denormalized sub-entities Jun 9, 2017
@grechaw grechaw modified the milestones: 9.0-3, backlog Jul 6, 2017
@jmakeig
Copy link
Contributor

jmakeig commented Aug 22, 2017

“weak” entities (so it matches next time I search)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants