Skip to content

Create way to easily bulk-insert resources into our database (CTE?) #36

Description

@VirtualDOMinic

Had a look into this last night but didn't have enough time to figure it out, sadly!

We want to be able to generate INSERT INTO queries that allow us to:

  • Insert a resource with all its relevant info
  • Get the resource_id of the newly-inserted object
  • Use this resource_id and the direct and indirect tags to insert into our linking table (demographic_resource_link)

The above should be a single, multi-part transaction/query for each resource, I believe!

Possible useful resources:

Hope they help! Definitely overkill to look at all of them, and I'm sure Aisha will have some useful insight, if/when she's in.

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions