performance-optimization

Optimize HMIS slow queries and heavy UI flows with DTOs, caching, and index-aware querying.

224|136|Updated Jul 12, 2014
One-click install
npx skills add https://github.com/hmislk/hmis --skill performance-optimization-hmislk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-optimization
Source: https://github.com/hmislk/hmis/tree/main/.claude/skills/performance-optimization
Command: npx skills add https://github.com/hmislk/hmis --skill performance-optimization-hmislk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

HMIS performance issues include slow queries, heavy reports, and sluggish UI interactions that hinder clinical and administrative workflows. This Skill provides a practical set of optimization patterns to reduce latency and improve responsiveness across modules.

Core Features & Use Cases

  • Use DTOs throughout to avoid unnecessary entity loading.
  • Cache autocomplete results to preserve converters' data and reduce recomputation.
  • Defer expensive operations and skip unnecessary steps to streamline workflows.
  • Apply query optimization strategies such as DTO constructor queries, filtered WHERE clauses, and proper indexing.
  • Optimize reports and dashboards through pre-aggregation, lazy loading, and result caching.
  • Real-world use case: speeding up a slow patient portal search and a heavy reporting job by applying these patterns.

Quick Start

Run the optimization checklist on a slow HMIS page to begin applying the core patterns.

Frequently Asked Questions about performance-optimization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize slow database queries in HMIS reporting modules?

Optimize slow HMIS queries by applying DTO constructor queries, filtered WHERE clauses, and proper database indexing. This Skill guides SQL optimization, pagination, and lazy loading to reduce latency in heavy reporting modules.

What is the best way to speed up sluggish HMIS dashboard and UI interactions?

Speed up sluggish HMIS UI interactions by deferring expensive operations, skipping unnecessary steps, and applying lazy loading. This Skill streamlines heavy workflows and optimizes data-intensive dashboards through result caching and pre-aggregation.

How do I use DTOs to avoid unnecessary entity loading in HMIS applications?

Using DTOs throughout your HMIS application avoids unnecessary entity loading by transferring only the required data fields. This Skill enforces DTO usage and deferred execution to streamline data flows and reduce recomputation overhead.

Can HMIS autocomplete performance be improved through caching?

HMIS autocomplete performance can be improved by caching results to preserve converter data and reduce recomputation. This Skill applies caching patterns to minimize database hits and accelerate search interactions in clinical workflows.

Does this query optimization approach work for both development and production HMIS environments?

This query optimization approach works across both development and production HMIS environments. The Skill applies proven optimization patterns like index-aware querying and pagination to slow pages and heavy jobs in any deployment context.