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

File list command is too slow #40

Open
dimitrystd opened this issue Sep 21, 2017 · 2 comments
Open

File list command is too slow #40

dimitrystd opened this issue Sep 21, 2017 · 2 comments

Comments

@dimitrystd
Copy link

I have a project with 1.2K xml files. I wanted to delete all files. So, first of all, i tried to build a list of all files by command

smartling-cli files list -s -p 2a1xxxxxx

After 5 mins of waiting, i don't see file URIs. Then i tried to run with -vv and looks like it works, but it requests details for each file. In my case, i don't need any details and explicitly added -s.

Can we optimize files list command for -s parameter because it's impossible to get a result for projects with 200+ files?

@dimitrystd
Copy link
Author

@enegron-sl we designed files list as command that provides full information about remote and local files. By default we print nice table with progress for every locale.
Should we make files list really simple like corresponding api call and design another command for detailed status?

@seletskiy
Copy link

seletskiy commented Sep 24, 2017

@dimitrystd: Files list is not requesting any other information from remote server:

https://github.com/Smartling/smartling-cli/blob/master/do_files_list.go#L32
https://github.com/Smartling/smartling-cli/blob/master/glob_files.go#L35
https://github.com/Smartling/api-sdk-go/blob/master/client_list_files.go#L57

It maybe paging issue, because it should do several requests to obtain full file list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants