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: |

A Russian Telegram channel with over 700,000 followers is spreading disinformation about Russia's invasion of Ukraine under the guise of providing "objective information" and fact-checking fake news. Its influence extends beyond the platform, with major Russian publications, government officials, and journalists citing the page's posts. "This time we received the coordinates of enemy vehicles marked 'V' in Kyiv region," it added. Pavel Durov, a billionaire who embraces an all-black wardrobe and is often compared to the character Neo from "the Matrix," funds Telegram through his personal wealth and debt financing. And despite being one of the world's most popular tech companies, Telegram reportedly has only about 30 employees who defer to Durov for most major decisions about the platform. Oleksandra Matviichuk, a Kyiv-based lawyer and head of the Center for Civil Liberties, called Durov’s position "very weak," and urged concrete improvements. Soloviev also promoted the channel in a post he shared on his own Telegram, which has 580,000 followers. The post recommended his viewers subscribe to "War on Fakes" in a time of fake news.
from sa


Telegram Кисель
FROM American