Junior — Middle
What is your experience and level of proficiency with PostgreSQL?
sobes.tech AI
Answer from AI
I have worked with PostgreSQL at a junior/middle level, using it for data storage and processing in web applications with Node.js. I am familiar with the basics of SQL queries, creating and optimizing indexes, writing migrations, and using transactions. I have also used ORMs such as Sequelize or TypeORM for easier database interaction.
Example of a simple Node.js query using pg:
const { Client } = require('pg');
const client = new Client({ connectionString: process.env.DATABASE_URL });
async function getUsers() {
await client.connect();
const res = await client.query('SELECT id, name FROM users WHERE active = $1', [true]);
await client.end();
return res.rows;
}
My main skills include understanding the relational model, working with transactions and indexing to improve performance.