Fixing dub search

bachmeier no at spam.net
Tue Dec 29 23:32:28 UTC 2020


On Tuesday, 29 December 2020 at 23:17:33 UTC, Ola Fosheim Grøstad 
wrote:
> On Tuesday, 29 December 2020 at 22:53:55 UTC, bachmeier wrote:
>> sqlite was the first thing I thought about when I saw this 
>> thread. How much data would have to be copied into an sqlite 
>> database for searching of packages? That has the advantage of 
>> more or less no dependencies, dead simple to add, claimed good 
>> results...
>
> I'm not being dismissive (I also don't use Dub), but in general 
> this would not scale very well. Unless you want to do all 
> searches locally. Also, a high quality search engine requires 
> custom ranking, so not really sure if it is overall less work 
> than rolling your own if you want high quality search results. 
> The text corpus is tiny, so there is really no point in using a 
> generic on-disk solution?

Well, except that sqlite works now and has been extensively 
tested. I don't want to discourage anyone from rolling their own, 
but knowing how long things take around here, and using actuarial 
tables to compute my life expectancy, it's not obvious that it 
would impact me. That's also why adding another dependency 
concerns me.


More information about the Digitalmars-d mailing list