diff --git a/qiita_db/support_files/patches/92.sql b/qiita_db/support_files/patches/92.sql
new file mode 100644
index 000000000..a4904adb4
--- /dev/null
+++ b/qiita_db/support_files/patches/92.sql
@@ -0,0 +1,20 @@
+-- Apr 16, 2024
+-- Adding a new table to contain the basic slurm information to minimize
+-- the number of times we need to retrieve this information
+
+CREATE TABLE qiita.slurm_resource_allocations (
+ processing_job_id uuid NOT NULL,
+ samples integer,
+ columns integer,
+ input_size bigint,
+ extra_info varchar DEFAULT NULL,
+ memory_used bigint,
+ walltime_used integer,
+ CONSTRAINT pk_slurm_resource_allocations_processing_job_id PRIMARY KEY (
+ processing_job_id )
+ );
+
+ALTER TABLE qiita.slurm_resource_allocations
+ ADD CONSTRAINT fk_slurm_resource_allocations
+ FOREIGN KEY ( processing_job_id )
+ REFERENCES qiita.processing_job ( processing_job_id );
diff --git a/qiita_db/support_files/qiita-db.dbs b/qiita_db/support_files/qiita-db.dbs
index 32cdb3f78..c156f4749 100644
--- a/qiita_db/support_files/qiita-db.dbs
+++ b/qiita_db/support_files/qiita-db.dbs
@@ -1326,6 +1326,22 @@
Idx | Field Name | Data Type |
---|---|---|
* | +test | +boolean DEFAULT true | +
* | +base_data_dir | +varchar | +
* | +base_work_dir | +varchar | +
* | +current_patch | +varchar DEFAULT 'unpatched'::character varying | +
+ | max_preparation_samples | +integer DEFAULT 800 | +
+ | max_artifacts_in_workflow | +integer DEFAULT 35 | +
Idx | Field Name | Data Type |
---|---|---|
* | +processing_job_id | +uuid | +
+ | samples | +integer | +
+ | columns | +integer | +
+ | input_size | +bigint | +
+ | extra_info | +varchar DEFAULT null | +
+ | memory_used | +bigint | +
+ | walltime_used | +integer | +
Indexes | ||
pk_slurm_resource_allocations_processing_job_id | +ON processing_job_id | +|
Foreign Keys | ||
fk_slurm_resource_allocations | +( processing_job_id ) ref processing_job (processing_job_id) | +