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

The company maintains that it cannot act against individual or group chats, which are “private amongst their participants,” but it will respond to requests in relation to sticker sets, channels and bots which are publicly available. During the invasion of Ukraine, Pavel Durov has wrestled with this issue a lot more prominently than he has before. Channels like Donbass Insider and Bellum Acta, as reported by Foreign Policy, started pumping out pro-Russian propaganda as the invasion began. So much so that the Ukrainian National Security and Defense Council issued a statement labeling which accounts are Russian-backed. Ukrainian officials, in potential violation of the Geneva Convention, have shared imagery of dead and captured Russian soldiers on the platform. Russians and Ukrainians are both prolific users of Telegram. They rely on the app for channels that act as newsfeeds, group chats (both public and private), and one-to-one communication. Since the Russian invasion of Ukraine, Telegram has remained an important lifeline for both Russians and Ukrainians, as a way of staying aware of the latest news and keeping in touch with loved ones. Additionally, investors are often instructed to deposit monies into personal bank accounts of individuals who claim to represent a legitimate entity, and/or into an unrelated corporate account. To lend credence and to lure unsuspecting victims, perpetrators usually claim that their entity and/or the investment schemes are approved by financial authorities. Either way, Durov says that he withdrew his resignation but that he was ousted from his company anyway. Subsequently, control of the company was reportedly handed to oligarchs Alisher Usmanov and Igor Sechin, both allegedly close associates of Russian leader Vladimir Putin. Multiple pro-Kremlin media figures circulated the post's false claims, including prominent Russian journalist Vladimir Soloviev and the state-controlled Russian outlet RT, according to the DFR Lab's report.
from es


Telegram Кисель
FROM American