Skip to content

Commit

Permalink
Graph#query is faster than using Queryable#query
Browse files Browse the repository at this point in the history
Queryable#query filters the result of #each which is calling Graph#query
anyway.
  • Loading branch information
jcoyne committed Oct 29, 2015
1 parent 25774f5 commit e44bd14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ gemspec

gem 'pry-byebug' unless ENV["CI"]

gem 'rdf-spec', :github => 'ruby-rdf/rdf-spec', :branch => 'develop'
gem 'rdf-spec'
# gem 'rdf-spec', :github => 'ruby-rdf/rdf-spec', :branch => 'develop'
2 changes: 1 addition & 1 deletion lib/active_triples/rdf_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def type_registry
define_model_callbacks :persist
end

delegate :each, :load!, :count, :has_statement?, :to => :graph
delegate :query, :each, :load!, :count, :has_statement?, :to => :graph
delegate :to_base, :term?, :escape, :to => :to_term

##
Expand Down

0 comments on commit e44bd14

Please sign in to comment.