Rumble Huang

Results 7 repositories owned by Rumble Huang

active_model_cachers

63
Stars
9
Forks
Watchers

Simply cache whatever you want by using cachers which will help you maintain cached objects and expire them when they are changed.

atomically

26
Stars
3
Forks
Watchers

An ActiveRecord extension for writing commonly useful atomic SQL statements to avoid race condition.

deep_pluck

460
Stars
14
Forks
Watchers

Allow you to pluck attributes from nested associations without loading a bunch of records.

find_with_order

38
Stars
6
Forks
Watchers

Provides a simple way to find records in the same order of input array. Has better performance than manually sorting. (Support both PostgreSQL and MySQL)

pluck_all

101
Stars
10
Forks
Watchers

A more efficient way to get data from database. Like #pluck method but return array of hashes instead.

rails_or

94
Stars
5
Forks
Watchers

Cleaner syntax for writing OR Query in Rails 5, 6. And also add #or support to Rails 3 and 4.

multi_range

19
Stars
2
Forks
Watchers

Allow you to manipulate a group of ranges. Such as merging overlapping ranges, doing ranges union, intersection, difference, and so on.