td icon indicating copy to clipboard operation
td copied to clipboard

Ability to optimize Local Database

Open vkryl opened this issue 6 years ago • 5 comments

Local Database size grows over time. It grows very fast when you receive messages with Instant View (or subscribed to some channels). For now there's no option to optimize local database.

vkryl avatar Feb 09 '18 18:02 vkryl

How can I become informations about the new Update from April 22 - 2019?

The designated Telegram Bot has not yet been updated with the explanation of this update.

brickoffthewall avatar Apr 22 '19 13:04 brickoffthewall

Does this feature still not implemented in tdlib? Telegram X still says so, and that the data of secret chat will to be erased while doing so.

shah-sudeep avatar Apr 26 '20 10:04 shah-sudeep

@shah-sudeep the issue being still open means tdlib doesn't support db optimization yet

RememberTheAir avatar Apr 26 '20 12:04 RememberTheAir

Kích thước Cơ sở dữ liệu cục bộ tăng lên theo thời gian. Nó phát triển rất nhanh khi bạn nhận được tin nhắn với Chế độ xem tức thì (hoặc đăng ký một số kênh). Hiện tại, không có tùy chọn nào để tối ưu hóa cơ sở dữ liệu cục bộ.

#620

lam19892089 avatar Dec 15 '20 21:12 lam19892089

This is an old issue but I'm using TDLib and I noticed the DB size has grown to over 9 GIG on my device!

        authStateRequest.useMessageDatabase = true;
        authStateRequest.enableStorageOptimizer = true;

The Telegram app has a "Clear Local Database" option -- could at least something like this be added? Or a way to delete messages > a given timestamp?

jpage4500 avatar Aug 10 '23 14:08 jpage4500