Permalink
Browse files

[grailstwitter] More efficient builk indexing of status messages on s…

…tartup.
  • Loading branch information...
1 parent 7d5da2d commit d69daaf46aab9df2f925efeee5108afedb1d4b12 @pledbrook pledbrook committed Aug 25, 2011
@@ -19,9 +19,8 @@ class BootStrap {
// Index all status messages.
def statusMessages = Status.list()
log.info "Indexing ${statusMessages.size()} status messages"
- for (status in statusMessages) {
- searchableService.reindex(status)
- }
+ Status.reindex(statusMessages)
+ log.info "Finished indexing"
}
def destroy = {
@@ -13,7 +13,7 @@ hibernate {
environments {
development {
dataSource {
- dbCreate = "create-drop" // one of 'create', 'create-drop','update'
+ dbCreate = "update" // one of 'create', 'create-drop','update'
url = "jdbc:hsqldb:file:devDB;shutdown=true"
}
}

0 comments on commit d69daaf

Please sign in to comment.