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

Channels are not fully encrypted, end-to-end. All communications on a Telegram channel can be seen by anyone on the channel and are also visible to Telegram. Telegram may be asked by a government to hand over the communications from a channel. Telegram has a history of standing up to Russian government requests for data, but how comfortable you are relying on that history to predict future behavior is up to you. Because Telegram has this data, it may also be stolen by hackers or leaked by an internal employee. The gold standard of encryption, known as end-to-end encryption, where only the sender and person who receives the message are able to see it, is available on Telegram only when the Secret Chat function is enabled. Voice and video calls are also completely encrypted. "There are a lot of things that Telegram could have been doing this whole time. And they know exactly what they are and they've chosen not to do them. That's why I don't trust them," she said. "Markets were cheering this economic recovery and return to strong economic growth, but the cheers will turn to tears if the inflation outbreak pushes businesses and consumers to the brink of recession," he added. On December 23rd, 2020, Pavel Durov posted to his channel that the company would need to start generating revenue. In early 2021, he added that any advertising on the platform would not use user data for targeting, and that it would be focused on “large one-to-many channels.” He pledged that ads would be “non-intrusive” and that most users would simply not notice any change.
from us


Telegram Кисель
FROM American