This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package minfact | |
import com.google.common.base.Stopwatch | |
import groovy.transform.CompileStatic | |
import groovy.transform.Memoized | |
import java.util.concurrent.TimeUnit | |
@CompileStatic | |
public class MinFact { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=erl_crash_dump:0.1 | |
Tue Nov 25 16:30:52 2014 | |
Slogan: Kernel pid terminated (application_controller) ({application_start_failure,riak_cs,{invalid_bucket_props,{riak_cs_app,start,[normal,[]]}}}) | |
System version: Erlang R15B01 (erts-5.9.1) [source] [64-bit] [async-threads:64] [kernel-poll:true] | |
Compiled: Thu Jul 31 11:14:14 2014 | |
Taints: | |
Atoms: 12991 | |
=memory | |
total: 12489112 | |
processes: 534316 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.jolbox.bonecp.BoneCPDataSource | |
import org.codehaus.groovy.grails.commons.ConfigurationHolder as CH | |
import org.codehaus.groovy.grails.commons.ApplicationHolder as AH | |
import com.burtbeckwith.grails.plugin.datasources.DatasourcesBuilder | |
import grails.util.Environment | |
beans = { | |
def ds = CH.config.dataSource | |
def dsClosure = { bean -> | |
bean.destroyMethod = 'close' |