Make possible to mark an Entity as not indexable
------------------------------------------------
Key: QI-127
URL: http://issues.ops4j.org/jira/browse/QI-127
Project: Qi4j
Issue Type: New Feature
Components: API, Core Runtime, Indexing, Query
Affects Versions: 0.2, 0.1, 0.3
Reporter: Alin Dreghiciu
Assignee: Alin Dreghiciu
Priority: Minor
Fix For: 0.4
The current situation is that entities are always indexed by default. But there
are use cases when an entity should not be indexed. One such a case are
configuration entities which by indexing will trigger a recursive process as
described in:
" Basically, a change will trigger the indexing, which will attempt to
load/create the config for the indexing, which will use the EntityStore, which
will trigger the indexing, and then this loops until OutOfMemory."
Solution is to make possible to mark entities as not indexable via annotations
e.g. @Queryable(false).
Further on this annotation could be applied to the type meaning that the
entities of this type are not indexable or on a member property/assoc meaning
that only that specific prop/annotation is not indexed.
By default (@Queryable or annotation not present) the entities will be indexed.
A nice to have is that query api should not allow filtering of entities marked
as not indexable (runtime exception while building the where clause)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.ops4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev