Hello,
Is there a simple way to check if indexes specified in entities are well taken into account by ObjectDb ?
Regards,
Xirt
Hello,
Is there a simple way to check if indexes specified in entities are well taken into account by ObjectDb ?
Regards,
Xirt
You can see query execution details, including usage of indexes:
Hello,
sorry but name="query" give me nothing in output ( debug or trace ).
name="*" give me some informations about enhanced classes but still nothing about query :(
Regards
Are you using client-server mode? If you do, set the server configuration and check the server logs (queries are executed on the server, enhancement messages are client side).
I am using the embedded mode.
My objectdb.conf
<log path="/var/lib/tomcat7/logs/objectdb" max="8mb" stdout="true" stderr="true" />
<log-archive path="/var/lib/tomcat7/objectdb/archive/" retain="330" />
Any error ?
It should be:
<log path="/var/lib/tomcat7/logs/objectdb" max="8mb" stdout="true" stderr="true" /> <log-archive path="/var/lib/tomcat7/objectdb/archive/" retain="330" /> <logger name="query" level="debug" />
Full general conf :
<general>
<temp path="$temp" threshold="64mb" />
<network inactivity-timeout="0" />
<url-history size="50" user="true" password="true" />
<log path="/var/lib/tomcat7/logs/objectdb" max="8mb" stdout="true" stderr="true" />
<log-archive path="/var/lib/tomcat7/objectdb/archive/" retain="330" />
<logger name="query" level="trace" />
<!--<logger name="*" level="error" /> -->
<!--<logger name="query.manager" level="debug" />-->
</general>
I've got nothing in "/var/lib/tomcat7/logs/objectdb" directory.
I've got a file in archive ( containing infos about enhanced classes ) when i replace query by "*"
Maybe ObjectDB doesn't use that specific configuration file. Check the location of the objectdb.conf file, the location of the objectdb.jar file (that your application is using) and the information on this manual page.
I've added the args to my tomcat server but i'm sure that's was OK because name="*" output enhanced classes.
I'm using objectdb 2.6.2, may the conf has changed ...
I don't want to update my version because of potential regression or differents behaviours ( already experimented this ).
Well, i still don't understand my issue
Oh well i got it after few minutes.
Seems write in log is not immediate.
Well, how can i check index existence so ?
The log should show the selected query execution plan (and also other plans in debug level logging).
You may post it here for help with what it means.