
Closed
Posted
Paid on delivery
Bug fix + performance task in a [login to view URL] 14 / TypeScript / Prisma / PostgreSQL real-time dashboard app. Context: the app polls a leaderboard endpoint every 2 seconds to show ranked results from an Event table (user activity events with type, userId, timestamp, and a numeric value field). Two issues: 1. Missing database indexes. The polled query filters on (accountKey, lastActiveAt) and a separate query filters on (accountKey, status, updatedAt) — neither has a covering index, so both scans get slower as event history grows. Need hand-written Prisma migration SQL adding the two composite indexes (not `prisma migrate dev` autogenerate). 2. Leaderboard fallback silently fails as empty state. The ranking endpoint has a primary data source and a fallback data source. When the primary source has no data for a given session (common — different ingestion paths populate different sources), it should fall back automatically. Right now, if the fallback path throws ANY error, the UI shows the same "no results yet" empty state as a genuinely empty result — there's no way to tell "really empty" apart from "the fallback silently broke." Need: proper error propagation from the fallback so the frontend can show a distinct "couldn't load results" state instead of a false empty state, plus server-side logging so failures are visible. I'll share the specific relevant files (not the full repo) once we're talking — a few isolated files, a schema excerpt, and a description of the exact query patterns. Please apply only if you're comfortable working from targeted file excerpts and a written data-model description rather than a full running repo on day one. Small, contained, fixed-price. Looking for someone precise and clean — this may lead to more similar work if it goes well.
Project ID: 40641670
206 proposals
Remote project
Active 1 day ago
Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
206 freelancers are bidding on average $141 USD for this job

Hi, I’m comfortable working from isolated file excerpts and a written data-model description, so this setup is fine for me. Your brief is clear: hand-written Prisma SQL indexes, fixing the fallback so broken loads don’t masquerade as empty results, and adding visible server-side logging. I work carefully on contained bug/performance tasks like this and can keep the changes precise without disturbing unrelated parts of the app. If you share the relevant files, I can review them and get started right away.
$160 USD in 7 days
7.4
7.4

Hi, Two distinct problems here, and I'd treat them as such rather than one generic "fix it" pass — an unindexed query and a silently-swallowed error need different diagnostic approaches even though they share a codebase. My approach: Indexes: Hand-written Prisma migration SQL for composite indexes — matching actual query predicate order so Postgres can use them as covering indexes, not just present indexes that get ignored by the planner. I'll verify with EXPLAIN ANALYZE against representative data volume, not just assume the index helps. Fallback error handling: Rework the fallback path so thrown errors propagate distinctly from a genuine empty result — likely a typed result ({status: 'empty' | 'error' | 'ok', data}) surfaced to the frontend so it can render "couldn't load results" instead of masking failures as empty state. Paired with server-side logging (structured, with enough context to debug which ingestion path failed) so this doesn't silently recur. I'm comfortable working from targeted file excerpts, a schema excerpt, and a written data-model description — no need for a full repo to scope this precisely. Given the fixed-price, contained nature, I'll confirm exact query patterns with you before touching migration SQL, to avoid guessing at index column order. Ready to start once you share the files.
$30 USD in 1 day
6.2
6.2

This is the kind of targeted cleanup I like working on. I can help with both sides here: the database optimization via manual composite indexes, and the application logic fix so “no data” and “load failure” are handled as two separate states. I’m also fine working from selected files instead of a full repo initially, as long as the query patterns and schema excerpt are included. Happy to take a close look and handle it cleanly.
$140 USD in 7 days
5.9
5.9

Hello, I am very comfortable in working from targeted file excerpts and a written data model description rather than a full running repo on day 1. I will fix both the issues quickly and effectively. Leave me a message to discuss more details. I am looking forward to working with you, Fahad.
$150 USD in 1 day
5.3
5.3

Your scope is well written and very workable. I understand the two key issues: missing covering indexes for the polled queries, and fallback errors being swallowed and shown as a false empty state. I can implement the migration SQL manually, tighten the backend error flow, and make sure the frontend can distinguish an actual empty leaderboard from a failed fetch. This looks like a small, contained job and I’d be glad to help.
$150 USD in 7 days
5.3
5.3

I can help you with both issues directly. For the indexes: I'll write a hand-crafted SQL migration that adds the two covering composite indexes—one for `(accountKey, lastActiveAt)` and one for `(accountKey, status, updatedAt)`—based on the exact query patterns you provide. No autogenerated migrations, just clean, targeted SQL. For the fallback: I'll implement a clear separation between a genuinely empty result and a broken fallback. I'll add explicit error throwing and logging at the server level, and update the API response so the frontend can reliably distinguish "no data" from "failed to load." The UI will get a distinct error state, and the server logs will capture the failure details. I work well from targeted file excerpts and a written data model—no need for a full repo. This is a contained scope, and I'll keep the changes focused and clean.
$140 USD in 7 days
5.1
5.1

The dangerous bug isn’t an empty leaderboard; it’s an exception being converted into valid empty data. I’d trace the endpoint’s primary/fallback branches and preserve the distinction between [] and a thrown fallback error. The route should return a clear failure response, log the original server-side error with useful session context, and let the frontend render its separate load-failure state. No broad catch that quietly returns an empty array. For PostgreSQL, I’ll match each composite index to the actual predicates and ordering, keeping equality columns first and the range/sort column last, then provide hand-written Prisma migration SQL. I’ll also check the migration’s transaction behavior before considering CREATE INDEX CONCURRENTLY, since PostgreSQL won’t run it inside a transaction. Send the route handler, fallback code, UI state logic, schema excerpt, and exact query patterns; I’ll start by mapping every empty and error path before changing anything.
$140 USD in 7 days
4.8
4.8

Hello Dear! Good Day! Hope you are doing fine. This is Ruhul Ajom Sagor. I am an expert "Web Developer" with 10+ years of working experience in PHP, HTML5, CSS3, JavaScript, jQuery, Bootstrap, MySql and different Frameworks. I have completed my B.S.C Engineering in Computer Science and Engineering (CSE) from BUET. Hire me and you don't have to worry about your website problems again! I'll add value to your projects by creating astonishing designs and code with high impact and optimized user interaction that leads to bigger conversions. WHAT PROBLEMS CAN I HELP YOU SOLVE? • Custom Websites Using PHP and Frameworks • e-Commerce Websites (Woo-Commerce and Shopify) • Custom WordPress themes • On-Page and Off-Page SEO • WordPress themes Customization • Database Modeling/Development • WordPress migrations and upgrades • Responsive Coding (Make your website compatible with: smartphones, tablets, desktops) • Websites speed and loading time improvements • Cross-browser compatibility • PSD to HTML to WordPress conversion • HTML5/CSS3/jQuery websites based on Bootstrap I love challenges, talking to my clients, and meeting others’ standards as well as expectations. I will be discussing everything in detail, giving my full advice and delivering through best of my skills. You are cordially welcome to discuss your project. Thank You! Best Regards, Ruhul Ajom
$50 USD in 2 days
4.9
4.9

Hello, Your goal is to eliminate the performance bottlenecks while making the leaderboard behavior reliable and transparent. I can manually write the Prisma migration SQL for the required composite indexes, optimize the affected queries, and fix the fallback flow so genuine empty results are clearly distinguished from fallback failures. I'll also add proper server-side logging and clean error propagation, ensuring the frontend can display an accurate error state instead of a misleading empty one. I'm comfortable working from isolated files and schema excerpts, so there's no need for the full repository to deliver a precise, maintainable fix. Thanks.
$100 USD in 3 days
4.3
4.3

Hi there, The hard part is not just fixing the queries; it’s ensuring that performance improves consistently as the event history expands. Missing composite indexes on your filtered queries will definitely slow down your leaderboard performance. I can provide the necessary hand-written Prisma migration SQL to add those indexes effectively. Additionally, addressing the silent fallback failure is crucial. Implementing proper error propagation will allow the frontend to differentiate between an empty state and a failure to load results. This will enhance the user experience and improve visibility on the server-side for any logging issues. Could you clarify the specific conditions under which the fallback is currently failing? Thank you.
$140 USD in 7 days
3.3
3.3

Hello! I am ready to help your project . I am a seasoned Software Engineer with over 9 years of diverse experience in developing and delivering a wide range of applications. My expertise spans both Front-End and Back-End development, enabling me to create scalable, optimized, and secure software solutions tailored to meet your specific needs. I would welcome the opportunity to discuss your project in detail. Please feel free to reach out for a complimentary consultation to explore how we can collaborate and elevate your project to new heights. Thank you for considering my proposal. I look forward to the possibility of working together. Best regards, Esau
$140 USD in 7 days
3.1
3.1

Hello, "Composite Indexes + Explicit Fallback Errors" - you need two contained fixes without changing the dashboard behaviour. I’d add the two hand-written Prisma migration indexes for the exact filter patterns, then trace the fallback path so real fallback failures are logged and returned as an error instead of being converted into an empty leaderboard. I’d keep the changes isolated to the supplied files and validate the expected empty-vs-error states. The 2-second polling makes the missing indexes especially important because query cost can grow with event history, so I’d verify the index columns match the actual WHERE/ordering pattern rather than adding generic indexes. Can you provide the exact Prisma schema excerpt and the two current query snippets? Looking forward to working with you. Abror
$30 USD in 1 day
3.2
3.2

I would handle this as two isolated fixes so the database performance change and leaderboard error-state behavior stay easy to review. For Prisma, I would write the composite indexes directly in migration SQL against the exact query patterns you provide rather than relying on generated migrations. For the fallback path, I would preserve a true empty result as empty while propagating actual failures to a distinct frontend error state and server log. I would keep the patch limited to the supplied files and avoid unrelated refactors. I will send github links in chat
$30 USD in 3 days
2.4
2.4

Hi, I'd start with the indexes, since that's the part that actually protects you as your data grows. I'll write the migration SQL by hand for both composite indexes on (accountKey, lastActiveAt) and (accountKey, status, updatedAt), test them against a query plan to confirm they're actually being used, then move to the fallback bug. For the fallback, the real fix is making sure a thrown error from the secondary source gets caught and passed up as a distinct state instead of getting swallowed into "no results." I'll add server-side logging so you can see exactly when and why the fallback fails, and separate that from a genuinely empty leaderboard on the frontend. I've dealt with this exact "silent empty state" trap before, it hides real outages behind what looks like normal quiet periods. Working from file excerpts and a schema description is fine, I do that often. This is a clean, scoped fix, about a day once I have the files in hand. Best, Emrah
$118 USD in 1 day
2.1
2.1

Hi, I've fixed exactly these two types of issues in production Prisma/PostgreSQL dashboards. Just recently, a real-time analytics app was crawling because of missing composite indexes on frequently filtered columns. I wrote the hand-crafted migration SQL, verified with EXPLAIN ANALYZE, and query times dropped from seconds to single-digit milliseconds. For the fallback, I handled a similar silent-empty-state bug where a swallowed error made a dashboard look fine but was actually broken. I implemented distinct error propagation, added server-side logging, and gave the frontend a clear "failed to load" state. For your project, I'll add the two composite indexes with hand-written Prisma migration SQL (covering accountKey, lastActiveAt and accountKey, status, updatedAt), and fix the leaderboard fallback so it throws distinct errors to the frontend and logs failures properly on the server. I'm comfortable working from targeted file excerpts and a schema description—I don't need the full repo running locally on day one. This is a small, contained fix; I can turn it around within a day or two on a fixed price. Regards, Goran.
$200 USD in 4 days
2.3
2.3

I can take this on.... For the indexes , writing raw migration SQL directly instead of relying on autogenerate, adding composite indexes on accountKey and lastActiveAt and on accountKey, status and updatedAt so both filtered queries stay fast as the Event table grows. For the fallback issue I will make sure a genuine failure in the fallback source is surfaced as its own error state instead of collapsing into the same empty result the UI already shows, add server side logging around that path so failures are visible in your logs, and adjust the API response so the frontend can render a distinct couldn't load results message separate from a true empty state. I am comfortable working from targeted file excerpts and a written schema description rather than the full repo and can get started as soon as you share the files. Ahsan Habib
$90 USD in 2 days
2.2
2.2

Hello, "Custom Prisma Index Migration" - missing indexes slow your leaderboard queries I’ll add the two composite indexes using a raw SQL migration executed via Prisma’s $executeRaw, then verify query plans with EXPLAIN ANALYZE to keep response time under 200 ms. For the fallback error handling I’ll wrap the secondary data source call in a try/catch, return a distinct error flag, and log the exception with Winston so you can see why it failed. Which logging library do you prefer for server‑side errors, or should I set up a simple Winston logger? Looking forward to working with you. Artur Giżycki
$210 USD in 3 days
1.0
1.0

Sir/Medam, Glad to connect with you, Hope you are well. My name is Abbas, and I am a web and app developer with experience in building modern website and mobile application including AI. I noticed there may be an opportunity to improve your current business. If you’re open to it, if let's discuss your requirements and see how I can improve to your project. See our portfolio: https://www.freelancer.in/u/letsgood Looking forward to your response. Best, Abbas
$175 USD in 10 days
0.4
0.4

Hello What I need is you, and what you need is me. Together, we are mutually beneficial, and over time, that collaboration becomes a valuable asset. Juan
$140 USD in 3 days
0.0
0.0

Hi js 14 / TypeScript dashboard app using Prisma and PostgreSQL needs some performance tweaks. The lack of covering indexes on your polled queries is slowing things down as your event data grows. We can solve this with hand-written Prisma migration SQL to create the necessary composite indexes, cutting down those exhaustive scans. For the fallback issue, we'll enhance error propagation and add server-side logging to distinguish between true emptiness and fallback errors. I've handled similar requirements in real-time dashboards and improved performance through proper indexing and robust error management. The focus on using targeted file excerpts is a great way to streamline the process. I can help boost your app's performance and stability effectively. Let's dig into those files and map out the approach. Thanks, Shammi
$140 USD in 7 days
0.0
0.0

Toronto, Canada
Member since Aug 11, 2026
$30-250 USD
$30-250 USD
min £36 GBP / hour
₹750-1250 INR / hour
₹12500-37500 INR
₹1500-12500 INR
$30-250 USD
₹600-1500 INR
₹37500-75000 INR
$250-750 USD
₹1500-12500 INR
€750-1500 EUR
£20-250 GBP
₹1500-12500 INR
₹12500-37500 INR
$30-250 USD
£18-36 GBP / hour
$30-250 USD
$15-25 USD / hour
$1500-3000 USD
$40-45 USD