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

Indexing Performance for rebuildalll #20

Closed
jmrenouard opened this issue May 18, 2011 · 1 comment
Closed

Indexing Performance for rebuildalll #20

jmrenouard opened this issue May 18, 2011 · 1 comment

Comments

@jmrenouard
Copy link

A previous patches for rebuild have integrted but the first part of the patch doesn't seem to be intergreted.

Rebuildall in damm slow bur rebuild is fast.

the for loop just need this line to be fast.

for (ApplicationClass applicationClass : classes) {
rebuild(applicationClass.javaClass.getName());
}

thanks by advance,
Jean-Marie Renouard
public void rebuildAllIndexes() throws Exception {
Logger.info("Rebuild All indexes at "+getDateTime());
stop();
File fl = new File(DATA_PATH);
FileUtils.deleteDirectory(fl);
fl.mkdirs();
List classes = Play.classes
.getAnnotatedClasses(Indexed.class);
for (ApplicationClass applicationClass : classes) {
rebuild(applicationClass.javaClass.getName());
}

@jfp
Copy link
Owner

jfp commented Oct 31, 2011

Added in b2b8ad4

@jfp jfp closed this as completed Oct 31, 2011
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

2 participants