How to compress small strings

后端 未结 7 1304
没有蜡笔的小新
没有蜡笔的小新 2021-02-01 09:22

I have an sqlite database full of huge number of URLs and it\'s taking huge amount of diskspace, and accessing it causes many disk seeks and is slow. Average URL path length is

7条回答
  •  悲&欢浪女
    2021-02-01 09:58

    How to you use the URL table?

    Do you usually do a "range scan" or unique id lookup only?

    If you won't do something like WHERE url like "/xxxx/question/%". You could use a hashed index rather then a b-tree index on varchar() to reduce the number of disk seeks.

提交回复
热议问题