Hi!
We are planning to introduce "Documents" that will have a set of additional
attributes besides Content as regular xwiki page has.
For example our "Document" will contain
a) Name
b) Content
c) State
d) Rating
Questions are about proper attributes distribution between xwiki page and
object (instance of additional xwiki class will be designed)
Currently we see two reasonable ways. In both cases Name will be name of
page where our "Document" "stored".
1) Content in page
* Content is stored in a page content
* State and Rating are attributes of some class (e.g. OurDocClass),
stored as an object on this page.
2) Content in class
* Content, State and Rating are attributes of some class
* Page is just to display (may edit) properties (including Content) of
the object "attached" to particular page
I prefer to use first way, but there we have a dispute in our implementation
team.
Questions:
a) What way is preferable?
b) What benefits and disadvantages of using #1 ?
c) Are there possible some performance issues if we store bulky
content text in object property instead of page content?
I suppose in case #2 we can meet inconvenience with powerful using of other
xwiki functionality which we are planning to use, such as Lucene Searching,
Document Locking, Versioning, Including of page etc.
It will be nice to get recommendations or references to some staff on
xwiki.org.
Thank you,
Andriy