Hello Gabriel,
The problem I think you are having is that the 'make loadkd' drops all the
database indexes in order to be able to load the data at a reasonable speed.
To restore them do a 'make postload'. Without indexes, I'm surprised the
slowdown wasn't even bigger.
I also noticed that due to changes in kanjidic2 file over the last 3 years
(the last time I updated the kanjidic parser), I couldn't parse the current
version so I updated the parser.
the update to the repository so I can email the updated file to you if you
need it.
-- Stuart
On 05/03/2017 07:06 PM, 'Gabriel J.' Pérez Irizarry gabrieljoel@gmail.com [edict-jmdict] wrote:
> Hello!
>
> Many thanks for creating such a wonderful resource. What I am making would be impossible without it.
>
> I do 'make loadall' to get all the data and then run a few queries. The slowest query takes about ~250ms:
>
> SELECT DISTINCT
> e.id,
> kanj.txt,
> gloss.txt
> FROM
> entr AS e
> JOIN kanj ON kanj.entr=e.id
> JOIN gloss ON gloss.entr=kanj.entr
> WHERE kanj.txt LIKE '%食べる%' AND e.src=''
> LIMIT 1;
>
> (I am doing this to look for examples)
>
> If after doing 'make loadall' I do 'make loadkd' to add the Kanjidic data, then this same query starts taking double the time to run.
>
> On the documentation:
>
> * WARNING: kanjidic2 support is usable but incomplete.'
>
> Could the slowdown be because the support is incomplete or am I making an error somewhere? Any thoughts are appreciated.
>
> Best regards,
> Gabriel
>
- References:
- Query slowdown after loading Kanjidic data with make loadkd
- From: "Gabriel J." Pérez Irizarry <gabrieljoel@*********>
- Re: [edict-jmdict] Query slowdown after loading Kanjidic data with make loadkd
- From: s mcgraw <smcg6347@***********>
- Prev by Date: Re: [edict-jmdict] Query slowdown after loading Kanjidic data with make loadkd
- Next by Date: Re: [edict-jmdict] Query slowdown after loading Kanjidic data with make loadkd
- Previous by thread: Re: [edict-jmdict] Query slowdown after loading Kanjidic data with make loadkd
- Next by thread: N-grams
- Index(es):