ouyangjinting

Results 14 issues of ouyangjinting

### Summary [SQLite(3.35.0) release information](https://www.sqlite.org/releaselog/3_35_0.html) The SQLite add support for the RETURNING clause on DELETE, INSERT, and UPDATE statements. This PR used this feature, as follows: - `ActiveRecord::InsertAll` support use...

activerecord

```ruby user = User.create(name: "test", email: "[email protected]") user1 = User.fetch_by_uniq_keys(id: user.id) user2 = User.fetch_by_uniq_keys(id: user.id) user1.update_attribute(:name, "user1") user2.update_attribute(:email, "[email protected]") user_from_cache = User.fetch_by_uniq_keys(id: user.id) user_from_database = User.without_second_level_cache { User.find(user.id) } assert_equal...

```ruby class Animal < ApplicationRecord self.ignored_columns = [:name] end class Dog < Animal self.ignored_columns = [] end def test_sti_ignored_columns_not_match animal = Animal.create(name: "Dog", type: "Dog") animal.expire_second_level_cache Animal.find(animal.id) assert_equal "Dog", Animal.fetch_by_uniq_keys(id:...

## Summary When target file path has a space(eg: 'README.md '), `Rugged::Tree.diff(..., paths: ['README.md ']).patches` return empty array. This should be a problem caused by the ext or libgit2, but...

1. `Redis#connect` are outdated in version 3, removed after upgrading to version 4 2. `merge` method is wasteful, it returns a new object 3. `activesupport` moved to development dependency

First of all, thank you very much for your contribution. This gem is fantastic 🎉. Currently, with Searchkick, you can only select one index for a model. After calling model_class.reindex,...

feature request

### Description Great job on the #2079 PR! #2079 PR added the `wait_for_less_busy_worker` method, which improves request allocation to avoid being assigned to busy workers. However, for a single model,...

perf
waiting-for-review
refactor

### Description When `max_threads` and `min_threads` are the same, it is no need to call `auto_trim!`, which can reduce one thread. ### Your checklist for this pull request - [x]...

feature
waiting-for-review

As the title, it destroy data when happen migration rollback. Can the data be automatically exported before rollback, and then imported back when migrating again? _PS: English is not my...

### Motivation / Background This is a problem that has existed since the introduction of [ActiveRecord::InsertAll](https://github.com/rails/rails/pull/35077/files#r260410047). Initially, `ActiveRecord::InsertAll` used `ActiveRecord::Relation::QueryAttribute#value_for_database` to convert values. As the code evolved, it switched to...

activerecord