[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/14: Split up handling of package description data
From: |
Christopher Baines |
Subject: |
09/14: Split up handling of package description data |
Date: |
Fri, 2 Feb 2024 10:58:39 -0500 (EST) |
cbaines pushed a commit to branch master
in repository data-service.
commit d5e663cc1eeace03ebf2d33eacfa40fbd996d716
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Wed Jan 31 20:20:48 2024 +0100
Split up handling of package description data
To hopefully see which part is slow.
---
guix-data-service/model/package-metadata.scm | 25 +++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/guix-data-service/model/package-metadata.scm
b/guix-data-service/model/package-metadata.scm
index 17f4e10..77f24c6 100644
--- a/guix-data-service/model/package-metadata.scm
+++ b/guix-data-service/model/package-metadata.scm
@@ -368,12 +368,8 @@ WHERE packages.id IN (
(((id)) id))))
(define (package-description-data->package-description-set-id
- conn descriptions-by-locale)
- (let* ((package-description-ids
- (package-description-data->package-description-ids
- conn
- descriptions-by-locale))
- (package-description-set-id
+ conn package-description-ids)
+ (let* ((package-description-set-id
(exec-query
conn
(string-append
@@ -418,12 +414,17 @@ WHERE packages.id IN (
package-metadata))
license-set-ids
(with-time-logging "preparing package description set ids"
- (map (match-lambda
- ((_ _ package-description-data _)
- (package-description-data->package-description-set-id
- conn
- package-description-data)))
- package-metadata))
+ (map (lambda (package-description-ids)
+ (package-description-data->package-description-set-id
+ conn
+ package-description-ids))
+ (with-time-logging "preparing package description ids"
+ (map (match-lambda
+ ((_ _ package-description-data _)
+ (package-description-data->package-description-ids
+ conn
+ package-description-data)))
+ package-metadata))))
(with-time-logging "preparing package synopsis set ids"
(map (match-lambda
((_ _ _ package-synopsis-data)
- branch master updated (e0a6c84 -> ac1a4cb), Christopher Baines, 2024/02/02
- 01/14: Remove some time logging, Christopher Baines, 2024/02/02
- 04/14: Remove even more time logging, Christopher Baines, 2024/02/02
- 02/14: Log the time to call inferior-packages-plus-replacements, Christopher Baines, 2024/02/02
- 05/14: Make sure to keep roots for channel instance derivations, Christopher Baines, 2024/02/02
- 07/14: Add more logging in when computing channel instance derivations, Christopher Baines, 2024/02/02
- 09/14: Split up handling of package description data,
Christopher Baines <=
- 10/14: Fix exception handling in call-with-temporary-thread, Christopher Baines, 2024/02/02
- 12/14: Speed up loading package metadata, Christopher Baines, 2024/02/02
- 14/14: Cleanup some with-time-logging, Christopher Baines, 2024/02/02
- 06/14: Add some time logging in to inferior-packages-plus-replacements, Christopher Baines, 2024/02/02
- 11/14: Ignore inferior-protocol-error when computing channel instances, Christopher Baines, 2024/02/02
- 13/14: Compute lint warnings in parallel, Christopher Baines, 2024/02/02
- 08/14: Speed up fetching package replacements, Christopher Baines, 2024/02/02
- 03/14: Improve logging when computing a channel instance derivation fails, Christopher Baines, 2024/02/02