There is a table with 100 million records. You need to select all records where value > 100. What are the recommendations to minimize query execution time?
Java
Without Hibernate, how to implement optimistic locking manually using native SQL?
Was there a code review in the team?
Are there any restrictions on indexes? What types of indexes exist (hash, B-tree) and when should they be used?
JIT vs AOT compilation — what is the difference and advantages?
Tarrifs are embedded in the code. How can you change or add tariffs without modifying the code and redeploying?
Have you ever configured partitions or changed the number of partitions?
Tell me about the CAP theorem. What is it, and why is it needed?
var list = List.of(5, 13, 34); list.stream() .map(x -> x % 10) .peek(System.out::println) .filter(x -> x > 3) .forEach(System.out::println); List<String> animals = List.of("dog", "cat", "parrot"); animals.stream() .sorted() .peek(item -> System.out.println(item)) .map(String::length); System.out.println(animals);
Have you worked with PostgreSQL and query optimization?
HashMap vs TreeMap: differences, operation complexity, when to use?
What guarantees does volatile provide? How does it differ from Atomic?
How do hash indexes differ from B-tree indexes? Which is preferable for searching by last names?
What is a feature lead, and what was your experience in this role?
How to solve a report generation function that makes 4 independent REST requests in parallel and collects results?
What technologies and stack have you most frequently worked with?
Have you had to write unit and integration tests, and how did you do it?
Have you confirmed that the issue is on the external integration side (they take a long time to process requests)? What actions can be taken for quick response and in the future?
The marketplace system slowed down under load. Suspecting a database issue. What will you look for?
What happens if cacheService crashes or Redis returns a timeout, and how to handle it?