Telegram Group & Telegram Channel
Ближе к ночи получилось оптимизировать график в @ton_portfel

Время ответа упало с 3-7 секунд до ~300 миллисекунд

Теперь графики так быстро грузятся, что мы может даже будем подгружать сразу все и переключение между графиками будет моментальное

В плане реализации: тормозило всё из-за аггрегации цен токенов, потому что это сотни тысяч строк для месячного и годового периода, которые я агрегировал прямо в запросе к БД. Это требовало обхода всех строк (хоть и параллельного), что означало больше данных == дольше ответ.

Я навернул Materialized View в постгре и теперь у меня сразу есть агрегированные цены токенов для дневных и недельных промежутков



group-telegram.com/iamtemporary/76
Create:
Last Update:

Ближе к ночи получилось оптимизировать график в @ton_portfel

Время ответа упало с 3-7 секунд до ~300 миллисекунд

Теперь графики так быстро грузятся, что мы может даже будем подгружать сразу все и переключение между графиками будет моментальное

В плане реализации: тормозило всё из-за аггрегации цен токенов, потому что это сотни тысяч строк для месячного и годового периода, которые я агрегировал прямо в запросе к БД. Это требовало обхода всех строк (хоть и параллельного), что означало больше данных == дольше ответ.

Я навернул Materialized View в постгре и теперь у меня сразу есть агрегированные цены токенов для дневных и недельных промежутков

BY Кисель




Share with your friend now:
group-telegram.com/iamtemporary/76

View MORE
Open in Telegram


Telegram | DID YOU KNOW?

Date: |

Overall, extreme levels of fear in the market seems to have morphed into something more resembling concern. For example, the Cboe Volatility Index fell from its 2022 peak of 36, which it hit Monday, to around 30 on Friday, a sign of easing tensions. Meanwhile, while the price of WTI crude oil slipped from Sunday’s multiyear high $130 of barrel to $109 a pop. Markets have been expecting heavy restrictions on Russian oil, some of which the U.S. has already imposed, and that would reduce the global supply and bring about even more burdensome inflation. He floated the idea of restricting the use of Telegram in Ukraine and Russia, a suggestion that was met with fierce opposition from users. Shortly after, Durov backed off the idea. This provided opportunity to their linked entities to offload their shares at higher prices and make significant profits at the cost of unsuspecting retail investors. This ability to mix the public and the private, as well as the ability to use bots to engage with users has proved to be problematic. In early 2021, a database selling phone numbers pulled from Facebook was selling numbers for $20 per lookup. Similarly, security researchers found a network of deepfake bots on the platform that were generating images of people submitted by users to create non-consensual imagery, some of which involved children. Ukrainian President Volodymyr Zelensky said in a video message on Tuesday that Ukrainian forces "destroy the invaders wherever we can."
from tr


Telegram Кисель
FROM American