Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add duration time for the execute command #224

Open
daliboris opened this issue Apr 3, 2024 · 1 comment
Open

Add duration time for the execute command #224

daliboris opened this issue Apr 3, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@daliboris
Copy link

Enhancement

Some commands, for instance upload, shows the duratoin in the output, for example Created 0 collections and uploaded 1 resources in 292ms.

In the case of execute command, I'm missing this information.

I'm debugging the indexing routine by modifying the indexes and input data. I repeat the same command with different data (collection.xconf, index.xql, input.xml): xst execute "xmldb:reindex('/db/apps/teilex0-publisher/data/playground')" --config admin.xstrc.

Duration of the task is significant for my case.

Alternatives

I run the command using xst and watch the INFO in the eXist-db log.

@daliboris daliboris added the enhancement New feature or request label Apr 3, 2024
@line-o
Copy link
Member

line-o commented Apr 3, 2024

I think getting timings on query execution is a useful addition @daliboris
Couple of thoughts on the details:

  1. I prefer to stats similar to what eXide returns
    • compilation time
    • execution time
    • not have the timings include network transport (the overall time that upload reports)
  2. I prefer to have these timings only being output when a flag is set on the command line (e.g. --stats)
    For a lot of use-cases, where you want to work with the returned result, additional output would be problematic
    and this would break those.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants