<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/from-hours-to-minutes-optimizing-red-hat-developer-hub-performance-testing-with-immutable-ldap-imag-ad5oqxn4g" -->

---
title: From hours to minutes: Optimizing Red Hat Developer Hub...
description: Red Hat engineers describe how they solved slow environment setup times in Red Hat Developer Hub performance testing by replacing runtime user/group generation...
canonical: https://daily.dev/posts/from-hours-to-minutes-optimizing-red-hat-developer-hub-performance-testing-with-immutable-ldap-imag-ad5oqxn4g
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: From hours to minutes: Optimizing Red Hat Developer Hub performance testing with immutable LDAP images | daily.dev
og:description: Red Hat engineers describe how they solved slow environment setup times in Red Hat Developer Hub performance testing by replacing runtime user/group generation...
og:url: https://daily.dev/posts/from-hours-to-minutes-optimizing-red-hat-developer-hub-performance-testing-with-immutable-ldap-imag-ad5oqxn4g
og:image: https://api.daily.dev/og/posts/Ad5Oqxn4G.png
og:image:alt: From hours to minutes: Optimizing Red Hat Developer Hub performance testing with immutable LDAP images
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# From hours to minutes: Optimizing Red Hat Developer Hub performance testing with immutable LDAP images

**[Red Hat Developer](https://daily.dev/sources/rhdev)** · 5 min read · 0 upvotes · 0 comments

## Summary

Red Hat engineers describe how they solved slow environment setup times in Red Hat Developer Hub performance testing by replacing runtime user/group generation via the Keycloak Admin REST API with pre-built, immutable OpenLDAP container images. Using slapadd instead of ldapadd to write directly to LMDB database files offline, they cut populate times dramatically: 37 minutes to 21 seconds for 1,000 users/10,000 groups, and over 22 hours down to about 2 minutes for 10,000 users/150,000 groups. The approach uses a multi-stage Containerfile build, treats test data as static baked-in artifacts, and adds memberOf attributes to precompute graph relationships, eliminating flaky tests and enabling deterministic, reproducible performance baselines at scale.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://developers.redhat.com/articles/2026/09/17/optimizing-red-hat-developer-hub-performance-testing-with-immutable-ldap-images>

## Questions this post answers

### How can I speed up seeding a large number of users into OpenLDAP for testing?

Use slapadd instead of ldapadd to populate the LDAP database offline. slapadd writes directly to the LMDB database files while the server is offline, bypassing schema and access-control validation on every entry, unlike ldapadd which validates each entry over the network protocol. Baking this into a multi-stage container build reduced populate time for 10,000 users and 150,000 groups from over 22 hours to about 2 minutes.

_Engineers optimizing LDAP-backed test pipelines can find similar performance war stories curated on daily.dev._

### Why is generating thousands of test users through the Keycloak Admin REST API slow?

Generating users through the Keycloak Admin REST API is slow because each user requires a serialized chain of individual REST operations, and Red Hat Developer Hub then makes paginated HTTP calls to sync those users into its catalog database. Even with multi-threaded workers, this on-the-fly approach caused network timeouts, rate limits, and flaky, incomplete test catalogs at large scale.

_Teams debugging flaky catalog sync tests can follow real-world fixes like this one on daily.dev._

## Similar posts on daily.dev

- [How We Made Docker Builds 193x Faster: From 45 Minutes to 14 Seconds](https://daily.dev/posts/how-we-made-docker-builds-193x-faster-from-45-minutes-to-14-seconds-de7etgu0z) · HelixML · 78 upvotes · 1 comments
- [Red Hat Hardened Images: Top 5 benefits for software developers](https://daily.dev/posts/red-hat-hardened-images-top-5-benefits-for-software-developers-3grrqlzbv) · Red Hat Developer · 1 upvotes · 0 comments
- [First challenge on DevOpsLedger](https://daily.dev/posts/first-challenge-on-devopsledger-7gkfqjh4b) · Medium · 1 upvotes · 1 comments
- [Verify faster](https://daily.dev/posts/verify-faster-zmkbwrxol) · RUBYLAND · 0 upvotes · 0 comments
- [Netflix Found a Faster Way to Load Containers](https://daily.dev/posts/netflix-found-a-faster-way-to-load-containers-1ezpxbpep) · Cloud Native Now · 0 upvotes · 0 comments

---

Tags: [#infrastructure](https://daily.dev/tags/infrastructure), [#cicd](https://daily.dev/tags/cicd)

[View this post on daily.dev](https://daily.dev/posts/from-hours-to-minutes-optimizing-red-hat-developer-hub-performance-testing-with-immutable-ldap-imag-ad5oqxn4g)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"From hours to minutes: Optimizing Red Hat Developer Hub performance testing with immutable LDAP images","url":"https://daily.dev/posts/from-hours-to-minutes-optimizing-red-hat-developer-hub-performance-testing-with-immutable-ldap-imag-ad5oqxn4g","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/from-hours-to-minutes-optimizing-red-hat-developer-hub-performance-testing-with-immutable-ldap-imag-ad5oqxn4g"},"datePublished":"2026-09-17T14:27:29.309Z","dateModified":"2026-09-17T14:51:55.805Z","description":"Red Hat engineers describe how they solved slow environment setup times in Red Hat Developer Hub performance testing by replacing runtime user/group generation...","image":"https://media.daily.dev/image/upload/s--ZrL_HSsR--/f_auto/v1722860399/public/Placeholder%2006","thumbnailUrl":"https://media.daily.dev/image/upload/s--ZrL_HSsR--/f_auto/v1722860399/public/Placeholder%2006","isAccessibleForFree":true,"articleSection":"Red Hat Developer","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Red Hat Developer","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/2a8895f3216c4900bdc455585a4ad3e4","url":"https://daily.dev/sources/rhdev"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/from-hours-to-minutes-optimizing-red-hat-developer-hub-performance-testing-with-immutable-ldap-imag-ad5oqxn4g","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"infrastructure,cicd","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Red Hat Developer","item":"https://daily.dev/sources/rhdev"},{"@type":"ListItem","position":3,"name":"From hours to minutes: Optimizing Red Hat Developer Hub performance testing with immutable LDAP images"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/from-hours-to-minutes-optimizing-red-hat-developer-hub-performance-testing-with-immutable-ldap-imag-ad5oqxn4g#faq","mainEntity":[{"@type":"Question","name":"How can I speed up seeding a large number of users into OpenLDAP for testing?","acceptedAnswer":{"@type":"Answer","text":"Use slapadd instead of ldapadd to populate the LDAP database offline. slapadd writes directly to the LMDB database files while the server is offline, bypassing schema and access-control validation on every entry, unlike ldapadd which validates each entry over the network protocol. Baking this into a multi-stage container build reduced populate time for 10,000 users and 150,000 groups from over 22 hours to about 2 minutes. Engineers optimizing LDAP-backed test pipelines can find similar performance war stories curated on daily.dev."}},{"@type":"Question","name":"Why is generating thousands of test users through the Keycloak Admin REST API slow?","acceptedAnswer":{"@type":"Answer","text":"Generating users through the Keycloak Admin REST API is slow because each user requires a serialized chain of individual REST operations, and Red Hat Developer Hub then makes paginated HTTP calls to sync those users into its catalog database. Even with multi-threaded workers, this on-the-fly approach caused network timeouts, rate limits, and flaky, incomplete test catalogs at large scale. Teams debugging flaky catalog sync tests can follow real-world fixes like this one on daily.dev."}}]}
```

