id | name |
---|---|
1111 | The Beatles |
This file contains hidden or 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
require 'active_support/core_ext/hash' | |
require 'benchmark' | |
Benchmark.bm do |x| | |
x.report("string") do | |
1_000.times do | |
data_str = { | |
"id" => "06e99a1b-4020-4380-ab27-1a3e0c5e557c", | |
"type" => "Person", | |
"score" => "100", |
event id | event name | payload |
---|---|---|
1234 | artist_was_created | artist_id: 1111, name: 'Beatles' |
1235 | artist_name_was_corrected | artist_id: 1111, new_name: 'The Beatles' |
1236 | performance_was_claimed_on_recording | performance_claim_id: 7171, user_id: 2222, recording_id: 3131, performance: 'singer' |
This file contains hidden or 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
require 'google/cloud/datastore' | |
module Ruba | |
# This use the Google Datastore as a key value storage. | |
# One could argue that Memcache would be more appropriate. | |
# usage: | |
# | |
## class DoSomething | |
## include GoogleKeyVal | |
## |
OlderNewer