<s>
AutoFetch	B-General_Concept
in	O
computing	O
is	O
a	O
mechanism	O
for	O
automatically	O
tuning	O
object-relational	B-General_Concept
mapping	I-General_Concept
queries	O
.	O
</s>
<s>
Ali	O
Ibrahim	O
and	O
William	O
Cook	O
at	O
the	O
University	O
of	O
Texas	O
at	O
Austin	O
developed	O
the	O
idea	O
of	O
"	O
AutoFetch	B-General_Concept
"	O
including	O
an	O
implementation	O
for	O
and	O
followed	O
later	O
by	O
an	O
implementation	O
in	O
Ebean	B-Language
.	O
</s>
<s>
AutoFetch	B-General_Concept
uses	O
the	O
program	O
state	O
(	O
typically	O
the	O
call	B-General_Concept
stack	I-General_Concept
)	O
to	O
classify	O
queries	O
.	O
</s>
<s>
This	O
means	O
that	O
AutoFetch	B-General_Concept
can	O
tune	O
the	O
same	O
query	O
depending	O
on	O
HOW	O
it	O
was	O
called	O
.	O
</s>
<s>
Because	O
AutoFetch	B-General_Concept
automatically	O
gathers	O
the	O
profiling	O
information	O
developers	O
do	O
not	O
need	O
to	O
manually	O
try	O
and	O
gather	O
this	O
information	O
and	O
apply	O
performance	O
optimizations	O
to	O
the	O
code	O
.	O
</s>
<s>
AutoFetch	B-General_Concept
can	O
monitor	O
the	O
object	O
graph	O
usage	O
so	O
that	O
if	O
the	O
usage	O
changes	O
the	O
tuning	O
of	O
the	O
query	O
can	O
change	O
to	O
suit	O
.	O
</s>
<s>
AutoFetch	B-General_Concept
collects	O
object	O
graph	O
usage	O
when	O
queries	O
are	O
executed	O
.	O
</s>
<s>
For	O
ORMs	O
that	O
support	O
partial	O
objects	O
AutoFetch	B-General_Concept
can	O
also	O
tune	O
the	O
query	O
by	O
just	O
including	O
the	O
properties	O
that	O
the	O
application	O
uses	O
rather	O
than	O
all	O
properties	O
.	O
</s>
