Skip to content

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 (и т.д. штуками) No newline at end of file
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