one_to_one associations don’t use an eager limit strategy by default, but support both DISTINCT ON and window functions as strategies.
# File lib/sequel/model/associations.rb, line 425 425: def eager_limit_strategy 426: cached_fetch(:_eager_limit_strategy) do 427: case s = self[:eager_limit_strategy] 428: when Symbol 429: s 430: when true 431: ds = associated_class.dataset 432: if ds.supports_ordered_distinct_on? 433: :distinct_on 434: elsif ds.supports_window_functions? 435: :window_function 436: end 437: else 438: nil 439: end 440: end 441: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.