File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1+ ## Fish0 0.2.2 (May, 06, 2023) ##
2+
3+ * Added ` hint ` argument to ` Fish0::Repository ` in order to force usage of specific index(-es).
4+
5+
16## Fish0 0.2.0 (June, 01, 2017) ##
27
38* ` config.mongo_hosts ` -> ` config.mongo_uri ` . Now it accepts both Mongo URI as string and Hosts as array.
Original file line number Diff line number Diff line change @@ -87,6 +87,11 @@ def skip(value)
8787 self
8888 end
8989
90+ def hint ( value )
91+ @hint = value
92+ self
93+ end
94+
9095 def scope ( name , body )
9196 return if respond_to? ( name )
9297
@@ -105,6 +110,7 @@ def fetch
105110 scoped = scoped . projection ( @projection ) if @projection
106111 scoped = scoped . skip ( skip_quantity ) if skip_quantity . positive?
107112 scoped = scoped . limit ( limit_quantity ) if limit_quantity . positive?
113+ scoped = scoped . hint ( @hint ) if @hint
108114 scoped
109115 end
110116
Original file line number Diff line number Diff line change 11module Fish0
2- VERSION = '0.2.1 ' . freeze
2+ VERSION = '0.2.2 ' . freeze
33end
You can’t perform that action at this time.
0 commit comments