The example given for sharding from the docs looks like so:
servers = {}
(('0'..'9').to_a + ('a'..'f').to_a).each do |hex|
servers[hex.to_sym] = {:host=>"hash_host_#{hex}"}
end
DB=Sequel.connect('postgres://hash_host/hashes', :servers=>servers)
How would one do this using a jdbc connection string pointing to a
file? The JDBC connection string for a file typically looks like this:
DB=Sequel.connect('jdbc:h2:file:/some/path/to/database.db')
I use the H2 database which supports client/server style connections
so I know I could setup multiple H2 servers on the same box and have
the sharding work using the existing mechanism.
Is it even possible in Sequel 3.6 to use file-based databases for
sharding?
cr
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sequel-talk?hl=en.