Sha256: c45a0da0784a36f65d540c51d6a85c906ace2decd980e1438765634a266cf88e

Contents?: true

Size: 437 Bytes

Versions: 8

Compression:

Stored size: 437 Bytes

Contents

$LOAD_PATH.unshift("xampl_generated_code")

require 'RandomPeople'
require 'people'

Xampl.set_default_persister_kind(:tokyo_cabinet)
#Xampl.set_default_persister_format(:xml_format)
Xampl.set_default_persister_format(:ruby_format)

module RandomPeople

  start_opt = Time.now
  Xampl.transaction("random-people") do
    Xampl.optimise(:indexes_only => true)
#    Xampl.optimise
  end
  puts "optimised in #{ Time.now - start_opt}"

end

Version data entries

8 entries across 6 versions & 1 rubygems

Version Path
hutch-xamplr-1.0.0 examples/random-people/optimise.rb
hutch-xamplr-1.0.1 examples/random-people/optimise.rb
hutch-xamplr-1.0.2 examples/random-people/optimise.rb
hutch-xamplr-1.0.3 examples/random-people-shared-addresses/optimise.rb
hutch-xamplr-1.0.3 examples/random-people/optimise.rb
hutch-xamplr-1.0.4 examples/random-people-shared-addresses/optimise.rb
hutch-xamplr-1.0.4 examples/random-people/optimise.rb
hutch-xamplr-1.0.5 examples/random-people-shared-addresses/optimise.rb