Accessing allObjects from DiskStorage
- Vorherrschende Sprache
- Swift
- Sterne
- 3.1k
- Forks
- 355
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I've noticed an issue with the allObjects property in the DiskStorage implementation. The current default implementation returns an empty array, making it impossible to access any stored objects. Also, as of now there is no way to get allObjects from disk when they are not in memory?
The relevant code snippet from DiskStorage is as follows:
```
extension DiskStorage: StorageAware {
public var allKeys: [Key] { [] }
public var allObjects: [Value] { [] }
}
```
Beitragsleitfaden
Rechercherichtung
Start at the DiskStorage: StorageAware extension shown in the issue and trace how objects are persisted on disk. Determine the intended behavior for allObjects when values are not in memory, then add or update tests covering retrieval of all stored objects.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- swift
- Bereich
- database
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100