You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current question database uses a JSON object to represent an entire question, then puts that object in a single cell of an SQL database. This is stupid.
We also have a separate "database" in memory for pregenerated templates, which then gets saved to disk for faster startup. This feels redundant with the underlying database.
What I think we should have is a single database that stores the question data, and client requests pull directly from that database. Then we have a separate file that stores pregenerated templates (recalculated whenever the card files change), and when a question is generated, it finds the pregenerated list that matches its template and uses that while generating the question.
The text was updated successfully, but these errors were encountered:
The current question database uses a JSON object to represent an entire question, then puts that object in a single cell of an SQL database. This is stupid.
We also have a separate "database" in memory for pregenerated templates, which then gets saved to disk for faster startup. This feels redundant with the underlying database.
What I think we should have is a single database that stores the question data, and client requests pull directly from that database. Then we have a separate file that stores pregenerated templates (recalculated whenever the card files change), and when a question is generated, it finds the pregenerated list that matches its template and uses that while generating the question.
The text was updated successfully, but these errors were encountered: