Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org.cryptocoinpartners.module.xchange.XchangeData taking long time to start up #85

Closed
douggie opened this issue Feb 12, 2015 · 0 comments

Comments

@douggie
Copy link
Collaborator

douggie commented Feb 12, 2015

when there is a lot of data in the DB, the following takes a long time (2-3 mins) to return.

TypedQuery<org.cryptocoinpartners.schema.Trade> query = entityManager.createQuery(
"select t from Trade t where market=?1 and time=(select max(time) from Trade where market=?1)",
org.cryptocoinpartners.schema.Trade.class);
query.setParameter(1, market);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant