This commit is contained in:
Dmitry Zuikov 2023-04-02 11:49:28 +03:00
parent 343bfd6070
commit 60e420f668
3 changed files with 10 additions and 4 deletions

View File

@ -0,0 +1,5 @@
TODO: asap-git-recursive-sql-query-for-deps
Сейчас зависимости хранятся как связь один объект - все зависимые объекты транзитивно,
что сильно раздувает БД. В sqlite3 работают рекурсивные запросы, так что можно
хранить один уровень (объект, зависимый объект) и не хранить все
зависимости транзитивно. Это сократит размер стейта и ускорит запись.

View File

@ -0,0 +1 @@
TODO: measure-rtt-on-ping

View File

@ -13,7 +13,7 @@ defMessageQueueSize :: Integral a => a
defMessageQueueSize = 65536*10 defMessageQueueSize = 65536*10
defBurst :: Integral a => a defBurst :: Integral a => a
defBurst = 8 defBurst = 2
defBurstMax :: Integral a => a defBurstMax :: Integral a => a
defBurstMax = 64 defBurstMax = 64
@ -70,18 +70,18 @@ defBlockWipTimeout :: TimeSpec
defBlockWipTimeout = defCookieTimeout defBlockWipTimeout = defCookieTimeout
defBlockInfoTimeout :: Timeout 'Seconds defBlockInfoTimeout :: Timeout 'Seconds
defBlockInfoTimeout = 60 defBlockInfoTimeout = 20
defBlockInfoTimeoutSpec :: TimeSpec defBlockInfoTimeoutSpec :: TimeSpec
defBlockInfoTimeoutSpec = toTimeSpec defBlockInfoTimeout defBlockInfoTimeoutSpec = toTimeSpec defBlockInfoTimeout
-- how much time wait for block from peer? -- how much time wait for block from peer?
defBlockWaitMax :: Timeout 'Seconds defBlockWaitMax :: Timeout 'Seconds
defBlockWaitMax = 120 :: Timeout 'Seconds defBlockWaitMax = 20 :: Timeout 'Seconds
-- how much time wait for block from peer? -- how much time wait for block from peer?
defChunkWaitMax :: Timeout 'Seconds defChunkWaitMax :: Timeout 'Seconds
defChunkWaitMax = 60 :: Timeout 'Seconds defChunkWaitMax = 10 :: Timeout 'Seconds
defSweepTimeout :: Timeout 'Seconds defSweepTimeout :: Timeout 'Seconds
defSweepTimeout = 60 -- FIXME: only for debug! defSweepTimeout = 60 -- FIXME: only for debug!