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

Andrey, a Russian entrepreneur living in Brazil who, fearing retaliation, asked that NPR not use his last name, said Telegram has become one of the few places Russians can access independent news about the war. And while money initially moved into stocks in the morning, capital moved out of safe-haven assets. The price of the 10-year Treasury note fell Friday, sending its yield up to 2% from a March closing low of 1.73%. In a statement, the regulator said the search and seizure operation was carried out against seven individuals and one corporate entity at multiple locations in Ahmedabad and Bhavnagar in Gujarat, Neemuch in Madhya Pradesh, Delhi, and Mumbai. Telegram has gained a reputation as the “secure” communications app in the post-Soviet states, but whenever you make choices about your digital security, it’s important to start by asking yourself, “What exactly am I securing? And who am I securing it from?” These questions should inform your decisions about whether you are using the right tool or platform for your digital security needs. Telegram is certainly not the most secure messaging app on the market right now. Its security model requires users to place a great deal of trust in Telegram’s ability to protect user data. For some users, this may be good enough for now. For others, it may be wiser to move to a different platform for certain kinds of high-risk communications. Now safely in France with his spouse and three of his children, Kliuchnikov scrolls through Telegram to learn about the devastation happening in his home country.
from ar


Telegram Кисель
FROM American