mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 16:52:08 +01:00
fix: address multiple code review issues across platform components
- Fix maxUsers input validation to prevent negative values and handle NaN cases - Enhance error handling in fetchCompany with detailed logging and context - Implement actual cache invalidation logic with pattern-based clearing - Add comprehensive cache optimization with memory management - Remove unsafe type casting in performance history analytics - Improve form validation and authentication patterns - Update documentation to mask sensitive data in examples
This commit is contained in:
@ -21,12 +21,12 @@ The optimization focuses on the most frequently queried patterns in the applicat
|
||||
```sql
|
||||
-- Query pattern: companyId + processingStatus + requestedAt
|
||||
CREATE INDEX "AIProcessingRequest_companyId_processingStatus_requestedAt_idx"
|
||||
ON "AIProcessingRequest" ("sessionId", "processingStatus", "requestedAt");
|
||||
ON "AIProcessingRequest" ("companyId", "processingStatus", "requestedAt");
|
||||
|
||||
-- Covering index for batch processing
|
||||
CREATE INDEX "AIProcessingRequest_session_companyId_processingStatus_idx"
|
||||
ON "AIProcessingRequest" ("sessionId")
|
||||
INCLUDE ("processingStatus", "batchId", "requestedAt");
|
||||
CREATE INDEX "AIProcessingRequest_companyId_processingStatus_covering_idx"
|
||||
ON "AIProcessingRequest" ("companyId")
|
||||
INCLUDE ("processingStatus", "batchId", "requestedAt", "sessionId");
|
||||
```
|
||||
|
||||
**Impact**:
|
||||
|
||||
Reference in New Issue
Block a user