Sobes.tech

Aggregate functions (SUM, COUNT, etc.) — where can they be used in an SQL query? What is the difference between WHERE and HAVING when using aggregate functions?

Middle
210

Deploying code, the database is fine, the processor is not loaded, but requests via REST API are executed sequentially as if one after another. What could be wrong with the database connection configuration?

Middle
197

var i = 1; i < 5; i++ ) { setTimeout( () => console.log(i), 1000 ); } const userName = new MyComparatorConstructor('Sinichkin'); try { if (userName == "Ivanov" || prev == "Skidorov") { console.log('Access granted'); } else { console.log('Forbidden'); } } catch (error) { if (error instanceof ComparisonProhibited) { } } .valueOf() .toString() String.toPrimitive

Middle
195

TypeScript: what are Omit and Pick? What is the difference between union and intersection types? What will happen if an intersection type is passed to Omit?

Middle
190

Is it possible to hang Node.js on the JavaScript/V8 side without using an infinite while(true) loop? How to make sure the promise queue never empties?

Middle
189

What happened to the database? Migrations have been applied. The database is in a modified state — how to understand what happened and how to recover?

Middle
182

You are deploying a new feature to the test environment and it causes the test environment to go down. What will you do?

Middle
179

You found out through EXPLAIN ANALYZE that your queries are suboptimal. What are the most common causes of query inefficiency?

Middle
178

Please tell about relational databases in general. They include Postgres, I will specify its specifics.

Middle
177

function fixed (f) { const me = this return function next (...a) { if (a.length < f.length) { return function (...b) { return next(...a, ...b) } } return f.call(me, ...a) } } export default fixed

Middle
175

What is an abstract class? What happens if a developer writes ts-ignore and does not implement the abstract class methods?

Middle
169

Microservices: how to implement distributed transactions across multiple microservices with rollback capability? What are Saga and Outbox patterns?

Middle
162

How do you understand asynchrony in Node.js? What are the microtask queue and macrotask queue?

Middle
160

Is Node.js single-threaded or not? How many threads can a Node.js executable file occupy and why? What is libuv and how is it related to the event loop?

Middle
153

JSONB has a binary format. What does this specifically allow to do for a column?

Middle
148

How do JSON and JSONB differ in PostgreSQL?

Middle
148

var i = 1; i < 5; i++ { setTimeout(() => console.log(i), 1000) } const userName = new MyComparatorConstructor('Sinichkin') try { if (userName == "Ivanov" || pet row || Skidorov) { console.log('Access granted') } else { console.log('Forbidden') } } catch (error) { if (error instanceof ComparisonProhibited) { } } .valueOf .toString .String.toPrimitive

Middle
129

What is the difference between interface and type in TypeScript? Why are interfaces needed if there are types and vice versa?

Middle
128

We rolled back the migration, everything is alive. We need to deploy a feature — what will you do next if you just deploy again, and everything will repeat?

Middle
121

Have you encountered problems when normalizing or denormalizing data? How does normalization help with heavy loads on the DBMS?

Middle
111