You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.0 KiB

3 years ago
  1. myapp = {
  2. database = {
  3. driver = org.postgresql.Driver
  4. url = "jdbc:postgresql://localhost:5432/test_db"
  5. user = "test_user"
  6. password = "password"
  7. // The number of threads determines how many things you can *run* in parallel
  8. // the number of connections determines you many things you can *keep in memory* at the same time
  9. // on the database server.
  10. // numThreads = (core_count (hyperthreading included))
  11. numThreads = 20
  12. // queueSize = ((core_count * 2) + effective_spindle_count)
  13. // on a MBP 13, this is 2 cores * 2 (hyperthreading not included) + 1 hard disk
  14. queueSize = 10
  15. // https://blog.knoldus.com/2016/01/01/best-practices-for-using-slick-on-production/
  16. // make larger than numThreads + queueSize
  17. maxConnections = 20
  18. connectionTimeout = 5000
  19. validationTimeout = 5000
  20. # connectionPool = disabled
  21. keepAlive = true
  22. migrations-table = "flyway_schema_history"
  23. migrations-locations = [
  24. # "classpath:example/jdbc"
  25. "classpath:db/migration/default"
  26. ]
  27. }
  28. }