Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | `#tables` and `#table_exists?` and returns only tables and not views | Rafael Mendonça França | 2016-12-29 | 1 | -6/+0 |
| | |||||
* | Use YAML to serialize schema cache | Kir Shatrov | 2016-11-27 | 1 | -0/+16 |
| | |||||
* | Add `Style/EmptyLines` in `.rubocop.yml` and remove extra empty lines | Ryuta Kamizono | 2016-08-07 | 1 | -1/+0 |
| | |||||
* | modernizes hash syntax in activerecord | Xavier Noria | 2016-08-06 | 1 | -3/+3 |
| | |||||
* | introduce `conn.data_source_exists?` and `conn.data_sources`. | Yves Senn | 2015-09-22 | 1 | -22/+29 |
| | | | | | | | | | | | | | | | | | These new methods are used from the Active Record model layer to determine which relations are viable to back a model. These new methods allow us to change `conn.tables` in the future to only return tables and no views. Same for `conn.table_exists?`. The goal is to provide the following introspection methods on the connection: * `tables` * `table_exists?` * `views` * `view_exists?` * `data_sources` (views + tables) * `data_source_exists?` (views + tables) | ||||
* | Apply schema cache dump when creating connections | Eugene Kenny | 2015-04-29 | 1 | -0/+8 |
| | | | | | | | | | | | | | | | The `db:schema:cache:dump` rake task dumps the database schema structure to `db/schema_cache.dump`. If this file is present, the schema details are loaded into the currently checked out connection by a railtie while Rails is booting, to avoid having to query the database for its schema. The schema cache dump is only applied to the initial connection used to boot the application though; other connections from the same pool are created with an empty schema cache, and still have to load the structure of each table directly from the database. With this change, a copy of the schema cache is associated with the connection pool and applied to connections as they are created. | ||||
* | Pass symbol as an argument instead of a block | Erik Michaels-Ober | 2014-11-29 | 1 | -3/+1 |
| | |||||
* | change to empty? from blank? | tsukasaoishi | 2014-08-08 | 1 | -1/+1 |
| | |||||
* | Tables existence check query is executed in large quantities | tsukasaoishi | 2014-08-07 | 1 | -0/+7 |
| | | | | | | | | | | | | | | When Rails starts, tables existence check query is executed number of models. In case of mysql, SHOW TABLES LIKE 'table1'; SHOW TABLES LIKE 'table2'; SHOW TABLES LIKE 'table3'; ... SHOW TABLES LIKE 'table999'; Add process to get the names of all tables by one query. | ||||
* | remove blank lines in the start of the ActiveRecord files | Ponomarev Nikolay | 2014-07-29 | 1 | -1/+0 |
| | |||||
* | Simplify the code in schema cache | Sean Griffin | 2014-05-23 | 1 | -31/+11 |
| | | | | | The use of default procs was unnessecary, made the code confusing to follow, and made marshalling needlessly complex. | ||||
* | Removed unsued deprecation require | Rashmi Yadav | 2013-07-04 | 1 | -1/+0 |
| | |||||
* | Remove deprecated nil-passing to `SchemaCache` methods. | Yves Senn | 2013-07-04 | 1 | -28/+8 |
| | |||||
* | fix hash duping on 1.9 | Aaron Patterson | 2013-03-14 | 1 | -1/+1 |
| | |||||
* | just access the ivars rather than rb_iv_get | Aaron Patterson | 2013-03-14 | 1 | -5/+3 |
| | |||||
* | hide more data in the schema cache | Aaron Patterson | 2013-03-14 | 1 | -1/+21 |
| | |||||
* | safely publish columns and columns hash info | Aaron Patterson | 2013-03-14 | 1 | -4/+12 |
| | |||||
* | dup and set the default proc to nil rather than looping through everything | Aaron Patterson | 2013-03-14 | 1 | -1/+3 |
| | |||||
* | schema cache already has the columns as a hash, so use that | Aaron Patterson | 2012-11-25 | 1 | -1/+11 |
| | |||||
* | speed up fixture loading by querying the schema cache for column names | Aaron Patterson | 2012-11-25 | 1 | -1/+10 |
| | |||||
* | Support judgement expired schema cache dump. | kennyj | 2012-03-01 | 1 | -3/+6 |
| | |||||
* | Load db/schema_cache.dump duaring boot time. | kennyj | 2012-03-01 | 1 | -1/+1 |
| | |||||
* | Add db:schema:cache:dump and db:schema:cache:clear tasks. | kennyj | 2012-03-01 | 1 | -0/+9 |
| | |||||
* | Add support schema cache dump and load. | kennyj | 2012-03-01 | 1 | -14/+34 |
| | |||||
* | columns method doesn't have name argument | Rafael Mendonça França | 2012-02-02 | 1 | -1/+1 |
| | |||||
* | Should clear the primary keys cache also | Jon Leighton | 2011-12-16 | 1 | -0/+1 |
| | |||||
* | Don't store defaults in the schema cache | Jon Leighton | 2011-12-16 | 1 | -3/+2 |
| | |||||
* | Defaults hash can go on the model | Jon Leighton | 2011-12-16 | 1 | -14/+1 |
| | |||||
* | Cache columns at the model level. | Jon Leighton | 2011-12-16 | 1 | -9/+2 |
| | | | | Allows two models to use the same table but have different primary keys. | ||||
* | Use `table_exists?` from the schema cache. | Aaron Patterson | 2011-12-09 | 1 | -4/+2 |
| | |||||
* | pushing caching and visitors down to the connection | Aaron Patterson | 2011-11-19 | 1 | -0/+72 |