discourse/script
Sam 5f64fd0a21 DEV: remove exec_sql and replace with mini_sql
Introduce new patterns for direct sql that are safe and fast.

MiniSql is not prone to memory bloat that can happen with direct PG usage.
It also has an extremely fast materializer and very a convenient API

- DB.exec(sql, *params) => runs sql returns row count
- DB.query(sql, *params) => runs sql returns usable objects (not a hash)
- DB.query_hash(sql, *params) => runs sql returns an array of hashes
- DB.query_single(sql, *params) => runs sql and returns a flat one dimensional array
- DB.build(sql) => returns a sql builder

See more at: https://github.com/discourse/mini_sql
2018-06-19 16:13:36 +10:00
..
benchmarks demo script for profiling middleware stack 2018-02-15 14:36:40 +11:00
bulk_import FEATURE: script to merge two discourse sites 2018-06-15 17:13:36 -04:00
demon_test demo script for demonizing using fork exec 2018-01-11 13:51:52 +11:00
import_scripts DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
.gitignore improvements to the mbox import script 2017-11-18 17:16:44 +01:00
alice.txt more progress towards live unread and new counts, unread message implemented, still to implement delete messages 2013-05-30 16:49:57 +10:00
bench.rb also watch LD_PRELOAD in bench 2018-05-03 15:50:45 +10:00
boot_mem.rb PERF: only require the rss library if used 2018-02-15 13:11:33 +11:00
check_forking.rb improve test 2016-11-02 22:19:16 +11:00
compile_hbs.rb FIX: Linting errors in Ruby 2017-09-01 13:34:45 -04:00
diff_heaps.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
discourse FIX: remap shouldn't fail silently when an error occurs 2018-06-19 14:49:43 +10:00
docker_test.rb docker.rake should pull the latest source 2018-05-15 15:09:49 +02:00
downsize_uploads.rb give some feedback that something is happening in downsize_uploads 2018-04-20 16:59:52 -04:00
measure.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
memory-analysis add memory analysis script 2018-06-14 12:18:36 +10:00
memstats.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
micro_bench.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
osx_dev fix error "extension "hstore" already exists" 2017-11-13 10:31:31 +08:00
plugin-translations.rb Configure Transifex for local-dates plugin 2018-05-04 10:13:15 +02:00
profile_db_generator.rb FIX: ruby bench not working properly 2018-02-19 11:37:16 +11:00
pull_translations.rb Pulling translations for a new language didn't work 2018-05-29 20:57:32 +02:00
rails turns out I should not have removed 2013-05-09 19:48:10 +10:00
redis_memory.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
require_profiler.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
test_email_settings.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
test_hbs_compiler.rb Add support for transformations 2017-10-05 16:24:58 -04:00
test_mem.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
test_pretty_text.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
theme-watcher partial upload support for scss 2018-03-14 13:01:52 +11:00
user_simulator.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
version_bump.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00