Avoid refetches when spans overlap
----------------------------------
Key: NEO-61
URL:
http://jira.codehaus.org/browse/NEO-61 Project: Neo
Type: Improvement
Versions: 1.4.2
Reporter: Erik Doernenburg
Assigned to: Erik Doernenburg
Priority: Minor
Everything functions correctly. However, there is one tweak I think we
should make. When you have multiple spans that cover the same entity,
we should only query one time.
Example:
A
/ \
B C
/ / \
D E F
Let's say we have an object graph like the one above that we want to
fill using Spans. We will pass our FetchSpecification to our
AFactory.Find method to retrieve the Entity.
If we use the following Spans {"C.F","C.E","B.D"}, this will give us the
correct data, but it will run the query for C twice. I propose that we
track which Entities we have already queried.
Chris
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa-
For more information on JIRA, see:
http://www.atlassian.com/software/jira---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email