Releases: sign/wn
Releases · sign/wn
v0.3.4
v0.3.3
v0.3.2
v0.3.1
What's Changed
- Startup warmup: Pre-warm DB connection and forms query cache during app startup, so the first user request skips the cold-query cost
- Forms endpoint logging: Added print-based logging to identify server-side bottlenecks (request received, query, JSON serialization, done)
- Increased
_get_formsLRU cache from 1 to 10 entries
v0.3.0
What's New
- Sense frequency counts on words endpoint: The
/lexicons/{lexicon}/wordsendpoint now includes SemCor corpus frequency counts (countattribute) in each included synset, enabling clients to rank word senses by usage frequency. - Merged upstream changes from goodmami/wn
- Added Wikidata lexemes extension for function words
- Docker and web configuration improvements
v0.2.2 - Performance Optimization
Performance Improvements
- 55% faster forms query - Added covering index on
(lexicon_rowid, form)which eliminates temporary B-tree creation and allows queries to be satisfied entirely from the index - Expected production improvement: ~3s → ~1.3s for forms endpoint
- Better scaling with multiple lexicons
Technical Details
- Added
form_lexicon_form_covering_indexto the forms table - Query plan now uses covering index instead of creating temporary B-trees for DISTINCT operations
- Compatible with existing databases (schema hash compatibility maintained)
Migration
For existing databases, the index will be created automatically when downloading new lexicons. To add the index to existing databases immediately, run:
CREATE INDEX form_lexicon_form_covering_index ON forms (lexicon_rowid, form);v0.2.1
Performance Improvements
- Optimized forms query: Added database index (
form_lexicon_index) to significantly improve performance of forms endpoint - More efficient SQL: Updated query to use SQL DISTINCT and direct joins for faster results
Changes
- Added
form_lexicon_indexon forms table for better query performance - Updated compatible schema hashes to support new database schema
- Optimized
_get_formsfunction to leverage new index
🤖 Generated with Claude Code
v0.2.0: definitions endpoint
Full Changelog: v0.1.0...v0.2.0
v0.1.0: Initial Release
Initial release of docker image for wn as a web server