# Can't import big family tree (over 24.000 people). Error 504 in GrampsWeb

**URL:** <https://gramps.discourse.group/t/cant-import-big-family-tree-over-24-000-people-error-504-in-grampsweb/8903>\
**Category:** Gramps Web\
**Tags:** data-import, sync\_tool\
**Created:** [December 5, 2025, 6:38pm UTC](https://gramps.discourse.group/t/cant-import-big-family-tree-over-24-000-people-error-504-in-grampsweb/8903 "2025-12-05T18:38:42Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [December 5, 2025, 9:30pm UTC](https://gramps.discourse.group/t/cant-import-big-family-tree-over-24-000-people-error-504-in-grampsweb/8903/5 "2025-12-05T21:30:23Z")

</div>

> [@DavidMStraub](#):
>
> Long-running tasks like imports don’t work without a task queue configured.

When reading this thread and the experiment that @jj0192 is doing (writing an external vb tool to parsing Gramps XML and directly write a SQLite db), the thought occurs that maybe doing this import on the server might not be the best use of server time. For large trees, maybe the PostgreSQL database should be built offline and ftp uploaded, then swapped out.

Key points of Jeff’s experiments:

- [4 days to import](https://gramps.discourse.group/t/json-inside-table/8879/9) a a 2 million person `.ged` GEDCOM in Gramps for desktops.
- 7 hours with Python to import a 2 million person `.gramps` XML in Gramps for desktops.
- [16 minutes for his vb tool](https://gramps.discourse.group/t/json-inside-table/8879/18) to parse the XML and wite the database.

Jeff mentioned how long his GECOM vb parser took took when converting to XML. But cannot seem to find that posting. But it was a whole lot less than 4 days.

---

_[View the full topic](https://gramps.discourse.group/t/cant-import-big-family-tree-over-24-000-people-error-504-in-grampsweb/8903)._
