Find next / previous Active Record(s) in one query
order_query finds next or previous records relative to the current one efficiently, using techniques popularized by Markus Winand. Version 0.1.3 just came out with several performance improvements. Read more on Github.
Comments
FYI here’s the same feature with https://github.com/charly/nexter. Uses AR inspection instead of order_by. Still quit beta but comments welcome.
Post a comment