Guo Xiang Tan
19c3c25db1
FIX: Handle BBCode in migrate_to_s3
task as well.
2019-03-22 16:47:06 +08:00
Régis Hanol
5381096bfd
PERF: new 'migrate_to_s3' rake task
2018-12-26 17:34:49 +01:00
Guo Xiang Tan
57f92ac808
Revert "Swtich to regexp for DbHelper.remap
."
...
Regexp is so much slower.
This reverts commit c3f89e3cd7
.
2018-11-08 14:20:09 +08:00
Guo Xiang Tan
c3f89e3cd7
Swtich to regexp for DbHelper.remap
.
2018-11-08 14:08:38 +08:00
Guo Xiang Tan
9737938a4a
Add option to skip tabels when using DbHelper.remap
.
2018-11-08 12:29:37 +08:00
Guo Xiang Tan
3365753bd0
PERF: Reduce number of database queries for DbHelper.remap
...
* Cuts number of queries from 273 to 89
* Add some specs
* For a table with 500 posts, benchmarks locally shows a runtime
reduction from 0.046929135 to 0.032694705.
2018-11-08 10:54:39 +08:00
Michael Brown
eba50f4591
DbHelper.remap: add options to anchor at left and right of the column value
2018-06-07 13:16:03 -04:00
Michael Brown
beef0d9dd2
fix my lint errors
2018-06-07 11:10:54 -04:00
Michael Brown
7e5f5a0b6b
DbHelper.find: column.table? strike that, reverse it
2018-06-07 10:59:34 -04:00
Michael Brown
8d57c712c3
Add DbHelper.find(needle)
...
* searches the entire database for a text string (such as an old CDN name)
2018-06-07 10:51:16 -04:00
Joffrey JAFFEUX
42a848f88f
linting
2018-04-23 10:26:33 +02:00
Régis Hanol
69c32a2651
Refresh site settings after a remap
2018-04-23 09:57:13 +02:00
Régis Hanol
189cb3ff12
FEATURE: move migrate_to_new_scheme into a background job
...
- new hidden site setting 'migrate_to_new_scheme' (defaults to false)
- new rake tasks to toggle migration to new scheme
- FIX: migrate_to_new_scheme also works with CDN
- PERF: improve perf of the DbHelper.remap method
- REFACTOR: UrlHelper is now a class
2015-06-12 12:07:57 +02:00