mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-14 11:06:13 +05:00
Snapshot.url was a CharField(max_length=65535) which reserves a fixed-width column and is too long to index or constrain on real DB backends. Store it as a variable-length TextField instead, so short URLs don't waste space and very long URLs (up to MAX_URL_LENGTH=8000) are supported, while keeping a normal index on the field so exact, prefix, and substring (icontains) URL lookups all stay fast. - misc/util.py: MAX_URL_LENGTH 65535 -> 8000 (the practical web-server limit) - core/models.py: Snapshot.url CharField -> TextField(db_index=True) - migration 0049_alter_snapshot_url - tests covering 8000-char persistence, exact/prefix/substring lookups, over-length rejection, and per-crawl uniqueness for long URLs https://claude.ai/code/session_01BLnGTL5GSoouD4ihaYp55n |
||
|---|---|---|
| .. | ||
| management | ||
| migrations | ||
| sqlite_backend | ||
| templatetags | ||
| __init__.py | ||
| admin_archiveresults.py | ||
| admin_site.py | ||
| admin_snapshots.py | ||
| admin_tags.py | ||
| admin_users.py | ||
| admin.py | ||
| apps.py | ||
| asgi.py | ||
| context_processors.py | ||
| forms.py | ||
| middleware.py | ||
| models.py | ||
| permissions.py | ||
| recovery_util.py | ||
| routes_util.py | ||
| settings_logging.py | ||
| settings.py | ||
| shutdown_util.py | ||
| snapshot_status.py | ||
| tag_util.py | ||
| takeover_util.py | ||
| urls.py | ||
| views.py | ||
| widgets.py | ||
| wsgi.py | ||