Skip to content

Conversation

@johnpaulashenfelter
Copy link
Collaborator

No description provided.

adapter: trilogy
encoding: utf8mb4 # <-- forces UTF-8 everywhere
collation: utf8mb4_unicode_ci # <-- portable across MySQL 5.7/8.0 and MariaDB
pool: <%= ENV.fetch("RAILS_MAX_THREADS", 5) %>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually get slightly nervous about making the pool the same size as the rails thread count ... mostly as it's possible that the rails application logic can (potentially) throw things out to their own background threads ...

I'm not really sure just how much this matters, but it's own of those things that makes me :hmmm:

url: <%= ENV.fetch("DATABASE_URL", "trilogy://root@localhost") %>
default: &default
adapter: trilogy
encoding: utf8mb4 # <-- forces UTF-8 everywhere
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment on lines +6 to +7
user: root
password:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should either be overridable ... or we should have some documentation in here explicitly pointing towards setting the DATABASE_URL envvar to override with local config. Not everyone knows that's a thing.

@github-actions
Copy link

This pull request has been inactive for 30 days. Please update it or let us know if it is still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants