ruby-rdf / spira

Spira is a framework for viewing RDF data as model objects
http://rubygems.org/gems/spira
The Unlicense
58 stars 36 forks source link

Prevent repeated identicial queries to repository #46

Closed rwd closed 6 years ago

rwd commented 6 years ago

Observed when using rdf-mongo for the repository adapter, Spira::Persistence#reload seems to result in multiple identical queries to the repository. (Once for each property on the model class?)

This change:

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.0006%) to 98.207% when pulling 0ea3454b9f475a7c19bfbafa26906e68486974bd on rwd:query-once-in-reload into 5cfaa9c5d226ee170020d767122cf86e8a62b723 on ruby-rdf:develop.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.0006%) to 98.207% when pulling 0ea3454b9f475a7c19bfbafa26906e68486974bd on rwd:query-once-in-reload into 5cfaa9c5d226ee170020d767122cf86e8a62b723 on ruby-rdf:develop.