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

Optimise title truncation #117

Open
griff-rees opened this issue Jun 19, 2023 · 1 comment
Open

Optimise title truncation #117

griff-rees opened this issue Jun 19, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@griff-rees
Copy link
Collaborator

The callable_on_chunk function in lwmdb.utils could be improved by one or more of the following:

  • increase batch_size (currently set to 2000)
  • refactor to use bulk_update rather than save
  • async functions/methods (like asave and abulk_update)
  • split data to even portions from records, managing each portion as a subprocess
  • limit the number of fields saved/updated to just those changing. Specifically:
    • title_word_count
    • title_char_count
    • title_truncated
@griff-rees
Copy link
Collaborator Author

Feature provided in #170 is an example of using bulk_update and could be general enough to apply here.

@griff-rees griff-rees added the enhancement New feature or request label Aug 13, 2023
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

1 participant