This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#7938) Delayed import from file, not YAML string.
When we import a report, pushing the entire content through the database using DelayedJob is fairly inefficient - we were shipping megabytes of YAML around, with some inefficient encoding, to get the data imported. Writing the report to a file, then importing by filename, increases performance substantially, at the cost of tying us to workers on the same node. Right now, that seems a worthwhile trade-off. Reviewed-By: Matt Robinson <[email protected]> Based on commit 1d00feb7a66c3f8001eec87d22c1cef823c5b945 by Pieter van de Bruggen <[email protected]>
- Loading branch information
Pieter van de Bruggen
authored and
Daniel Pittman
committed
Jun 17, 2011
1 parent
58c2b52
commit e839884
Showing
6 changed files
with
52 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# This directory is used to spool YAML reports for background importing. | ||
# None of the content lives beyond the time to load the report. | ||
* |