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

Lexicons Source Architecture #7

Open
irina060981 opened this issue Nov 19, 2018 · 1 comment
Open

Lexicons Source Architecture #7

irina060981 opened this issue Nov 19, 2018 · 1 comment
Assignees
Labels
discussion enhancement New feature or request

Comments

@irina060981
Copy link
Member

irina060981 commented Nov 19, 2018

Current workflow to get lexicons:

  • accoding to the dictionary we get an url with the list of all words,
    for example, for Latin https://repos1.alpheios.net/lexdata/ls/dat/lat-ls-ids.dat (980 kb)
  • parse the file with paparse library to the Dictionary
  • cache all the Dictionary to module's closure variable
  • search for the word

if it already has cached dictionary it simply searched in it.
So we could see the following disadvantages:

  1. parsing, fetching data from the whole amount of data on the client side
  2. we need to store the all definitions inside RAM

I suggest to look for a new workflow of retrieving this data - from structured database on the server - for example the easiest way - SQLite. It could be used on the server and for the local use.

@irina060981 irina060981 added the enhancement New feature or request label Nov 19, 2018
@balmas
Copy link
Member

balmas commented Nov 29, 2018

The design discussion for managing offline content is relevant to this request:
https://github.com/alpheios-project/documentation/blob/master/development/offline-content.md

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

No branches or pull requests

3 participants