-
-
Notifications
You must be signed in to change notification settings - Fork 202
Feat: Enhance Neo.data.Store to support Proxy loading #9091
Copy link
Copy link
Closed
Labels
aicoreCore framework functionalityCore framework functionalityfeatureNew feature functionalityNew feature functionality
Description
Objective
Update Neo.data.Store to utilize the new Proxy architecture for data loading.
Tasks
-
Proxy Integration:
- Add a
proxyconfig toStore. - If
proxyis defined (and is a valid instance/config), use it inload().
- Add a
-
Incremental Loading:
- Implement listeners/callbacks for the Proxy's streaming events.
- When the Proxy yields a chunk of records:
- Instantiate Models (if configured).
- Add them to the internal collection without firing a "refresh" event every time.
- Fire a new
recordsLoaded(or similar) event for the chunk.
- Fire
loadevent only when the stream is fully complete.
-
Backwards Compatibility:
- Ensure existing
url/autoLoadbehavior works (either via legacy logic or by auto-creating a defaultAjaxproxy under the hood, though that might be out of scope for step 1). For now,proxyshould probably be an alternative to the standardload.
- Ensure existing
Key Challenge
Handling sorting/filtering during a stream. Ideally, we just append. If the store is sorted, we might need to insert-sort (expensive) or just wait until the end. Decision: For Phase 1, assume "append-only" behavior during load, then sort at the end (or assume the source is pre-sorted).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
aicoreCore framework functionalityCore framework functionalityfeatureNew feature functionalityNew feature functionality