Re: dropping index dead lock

2021-02-15 Thread Rick Hillegas
Derby DDL is a heavy-weight operation. CREATE/DROP statements invalidate the in-memory metadata cache, effectively seizing a database-wide lock on the cache. Applications which perform a lot of DDL at steady-state will perform badly. I don't have any better advice than to recommend that you av

Re: Out-of-memory errors

2021-02-15 Thread Rick Hillegas
It looks like the subquery isn't doing any good. I would have hoped that the optimizer would be smart enough to join the subquery result to the primary key on id and then use the resulting row positions to probe into the heap. But the plan is just joining the subquery result to a full table sca

Re: Slow mount times

2021-02-15 Thread Rick Hillegas
The Derby engine has some trivial mxbeans which return simple, static facts--but nothing which would give you visibility into the progress of boot-time recovery. On 2/15/21 10:15 AM, Alex O'Ree wrote: Upon further investigation, I've seen if there are more than 4 files in the log directory, mo

Re: Slow mount times

2021-02-15 Thread Alex O'Ree
Upon further investigation, I've seen if there are more than 4 files in the log directory, mounting takes significantly longer but i've also seen 20+ files mount instantly. I had the idea of monitoring that directory to see if the file count changes during the recovery process. It does, but sometim

dropping index dead lock

2021-02-15 Thread Alex O'Ree
I've got a process that creates a bunch of temporary indexes, then does some work, then drops the indexes. All of these indexes are on different tables but in the same database. During the drop the indexes phase, i frequently get dead lock warning messages, each drop index statement seems to be blo

Re: Out-of-memory errors

2021-02-15 Thread John English
On 09/02/2021 18:05, Rick Hillegas wrote: As Bryan points out, please consult the Tuning Guide for information on how to view your query plan. In any event, your descending index is not a covering index. That is, it does not contain all of the columns in your query. That may be what forces the