Skip to content

Conversation

@dmakhmutov
Copy link

No description provided.

Copy link
Collaborator

@spajic spajic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Очень хорошая работа, спасибо!

@@ -0,0 +1,14 @@
# frozen_string_literal: true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Плюсик за Gemfile

user_sessions = sessions.select { |session| session['user_id'] == user['id'] }
```

Решил данную проблему сразу сгруппировав сессию по user_id
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

В результате проделанной оптимизации наконец удалось обработать файл с данными.
Удалось улучшить метрику системы с бесконечно долго выполнения до 33 секунд

Было весело :)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -0,0 +1,15 @@
# brew install rbspy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Плюсик за отдельные файлы для удобства работы

File.delete(result_file_path) if File.exist?(result_file_path)
end

describe "#work" do
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@vkurennov vkurennov closed this Jan 24, 2020
stashevgenij added a commit to stashevgenij/rails-optimization-task1 that referenced this pull request Jun 23, 2022
hayah pushed a commit to hayah/rails-optimization-task1 that referenced this pull request Mar 5, 2023
araslanov-e added a commit to araslanov-e/rails-optimization-task1 that referenced this pull request Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants