petervandenabeele / dbd Goto Github PK
View Code? Open in Web Editor NEWA data store that (almost) never forgets
License: MIT License
A data store that (almost) never forgets
License: MIT License
Reading back a 1 M lines (dense) facts file with jruby triggers Dbd::OutOfOrderError.
Tag 0.0.9.
Reading the same file with ruby-2.0.0 succeeds.
peter_v@peter64:~/p/dbd$ time jruby -J-Xmx18000m bin/test_6.rb /mnt/sdb2/big/jruby_1_7_4_1_000_000_H
Dbd::OutOfOrderError: Dbd::OutOfOrderError
<< at /home/peter_v/.rvm/gems/jruby-1.7.4@dbd/gems/dbd-0.0.8/lib/dbd/fact/collection.rb:45
<< at /home/peter_v/.rvm/gems/jruby-1.7.4@dbd/gems/dbd-0.0.8/lib/dbd/graph.rb:25
each_recursively at /home/peter_v/.rvm/gems/jruby-1.7.4@dbd/gems/ruby_peter_v-0.0.9/lib/ruby_peter_v/each_recursively.rb:7
<< at /home/peter_v/.rvm/gems/jruby-1.7.4@dbd/gems/dbd-0.0.8/lib/dbd/graph.rb:23
from_CSV at /home/peter_v/.rvm/gems/jruby-1.7.4@dbd/gems/dbd-0.0.8/lib/dbd/graph.rb:59
each at /home/peter_v/.rvm/rubies/jruby-1.7.4/lib/ruby/1.9/csv.rb:1792
from_CSV at /home/peter_v/.rvm/gems/jruby-1.7.4@dbd/gems/dbd-0.0.8/lib/dbd/graph.rb:57
tap at org/jruby/RubyKernel.java:1860
from_CSV at /home/peter_v/.rvm/gems/jruby-1.7.4@dbd/gems/dbd-0.0.8/lib/dbd/graph.rb:56
(root) at bin/test_6.rb:16
open at org/jruby/RubyIO.java:1148
(root) at bin/test_6.rb:15
real 0m14.742s
user 0m23.049s
sys 0m0.568s
peter_v@peter64:~/p/dbd$ cd ..
peter_v@peter64:~/p$ cd dbd/
...
Using /home/peter_v/.rvm/gems/ruby-2.0.0-p247 with gemset dbd
peter_v@peter64:~/p/dbd$ ruby bin/test_6.rb /mnt/sdb2/big/jruby_1_7_4_1_000_000_H
Graph is ready (took 165.768683958s), now starting the write to disk
graph.size is 1001000
I also want to use the "Factory" pattern as a proper pattern in for creating a new instance, so the "Factories" class that is now used for creating stubs/fixtures/test instances, should better be rename to something that is clearly related to specs/tests.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.