Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Оптимизация" бэкенда #145

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lightalloy
Copy link

На этот раз на минималках, извиняюсь )

  • проверила, что будет при кэшировании single_story + оставила кэширование, результаты в case_study
  • для приличия добавила pghero и rack-mini-profiler , полюбовалась
  • Newrelic не захотелось добавлять 🌚

Интересно будет настроить diy-мониторинг, попрофилировать rack-mini-profiler-ом консольно, профилировать кастомной middleware, но сделаю не на этом проекте ))

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.


> Рассмотрите гипотезу о том, что можно закешировать `<%= render "articles/single_story", story: story %>` в `_main_stories_feed.html.erb` и это даст заметный эффект. (В этот паршл входят счётчики лайков и комментариев, они не заморозятся?)

Если использовать `story.cache_key`, то по идее не заморозятся, т.к. счётчик берётся из поля модели (`cache_counter`).
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

Transfer rate: 1292.77 [Kbytes/sec] received
```

Как будто бы помогло. Проверяла с отключеным rack-mini-profiler (и т.д. штуками)
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

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.

2 participants