Skip to content

Commit

Permalink
use temp table to improve perf
Browse files Browse the repository at this point in the history
  • Loading branch information
Jugurtha Bouhadoun committed Jul 5, 2024
1 parent 0a36aa0 commit 586fe8d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/util/sequelize.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@ const {POSTGRES_BAN_USER, POSTGRES_BAN_PASSWORD, POSTGRES_DB, POSTGRES_URL} = pr
const POSTGRES_PORT = process.env.POSTGRES_PORT || 5432

// Create a new Sequelize instance

/* eslint-disable unicorn/numeric-separators-style */
export const sequelize = new Sequelize(POSTGRES_DB, POSTGRES_BAN_USER, POSTGRES_BAN_PASSWORD, {
host: POSTGRES_URL,
port: POSTGRES_PORT,
dialect: 'postgres',
logging: false
})
/* eslint-enable */

export const District = sequelize.define('District', {
id: {
Expand Down

0 comments on commit 586fe8d

Please sign in to comment.