apache / apache/hugegraph

[Feature] Support record slow-query-log in HugeServer

Open
#2,325 3 comments 2 reactions 0 assignees View on GitHub
feature
Dominant language
Java
Stars
3.2k
Forks
636
Avg merge
3d 11h
Merged PRs (30d)
14

Description

### Feature Description (功能描述)
as you know slow query log is important for db,like mysql.
![image](https://github.com/apache/incubator-hugegraph/assets/48077841/17a58b0f-a3ae-4050-ba58-660896381d12)
record query time, when using api to query graph info,because i think the api total time is the real query time for user.

some questions maybe need discuss @javeme @JackyYangPassion @imbajin @liuxiaocs7 @Radeity @simon824 @z7658329 @VGalaxies
1. do we need store slow log to file or just print it ? just use slf4j Logger?
2. hg support gremlin api & params api such as EdgeAPI/VertexAPI, they are different, do we need transform it when we record it( gremlin query language and params are different)?
3. i think we need set time threold、enabled、file path?like neo4j:

threold:
![image](https://github.com/apache/incubator-hugegraph/assets/48077841/526afc02-041a-4962-8130-d6cd0302c893)

enable:
![image](https://github.com/apache/incubator-hugegraph/assets/48077841/cf032b8b-9a2b-4654-b779-a1a3a5773332)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.