discourse/config
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
..
cloud/cloud66 Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
environments Fix the build. 2018-06-01 11:24:32 +08:00
initializers DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
locales UX: rate limiter message will say to wait "a few seconds" instead of 0 to 3 seconds 2018-06-18 14:14:47 -04:00
application.rb FIX: stop using Rails connection reaper in multisite 2018-06-14 12:49:30 +10:00
boot.rb Make bootsnap MRI only for now 2018-02-26 10:29:25 +11:00
cdn.yml.sample
database.yml Support user defined postgres timeouts 2017-10-27 09:59:44 -04:00
deploy.rb.sample enough with the malloc limit, not needed 2016-05-25 21:09:07 +10:00
discourse_defaults.conf FIX: correct pool reaper 2018-06-14 18:22:02 +10:00
discourse.config.sample enough with the malloc limit, not needed 2016-05-25 21:09:07 +10:00
discourse.pill.sample
environment.rb prevent the application from starting in development mode when SMTP settings are changed 2016-06-03 17:39:54 +02:00
logrotate.conf
multisite.yml.production-sample
nginx.global.conf
nginx.sample.conf correct multisite bleed in proxy cache 2018-04-11 11:02:16 +10:00
projections.json
puma.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
routes.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
sidekiq.yml Opps no reason to limit this to 1. 2017-09-29 08:19:35 +08:00
site_settings.yml FEATURE: New site setting, whitelisted_link_domains 2018-06-13 16:11:22 -04:00
spring.rb
thin.yml.sample
unicorn_launcher
unicorn_upstart.conf enough with the malloc limit, not needed 2016-05-25 21:09:07 +10:00
unicorn.conf.rb ActiveRecord in Rails 5.2 discards connection pools after fork. 2018-06-12 09:30:52 +08:00