How to read Apache Derby database log?

后端 未结 1 2031
执念已碎
执念已碎 2021-01-03 07:38

I\'d like to have a peek at Derby\'s database log; I don\'t mean the derby.log file, I\'m talking about the binary log files in the /[database name]/log directo

1条回答
  •  温柔的废话
    2021-01-03 08:36

    There do exist such tools, but they're quite low-level. Here's a place you can find them: https://issues.apache.org/jira/browse/DERBY-5195

    Diagnosing locking problems such as these is very challenging; hopefully reading the logs will give you some clues. The logs will only contain information about update activity, so you will need to infer read activity using other means.

    Another thing you might try is to see if you can augment your testing process to include invocations of the lock_table data (http://db.apache.org/derby/docs/10.8/devguide/cdevconcepts50894.html).

    Probably either: (a) your ORM tool is running more/different code than you think it's running, or (b) your ORM tool is not expressing the transaction boundaries the way you think it is.

    Best of luck!

    0 讨论(0)
提交回复
热议问题