Python Forum
Store a python list of lists in a database to use for searches later on
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Store a python list of lists in a database to use for searches later on
#3
Hi,

generally speaking, you can store anything into any data base. Just sometimes it's difficult to make data structures fit, thus some data bases don't make too much sense for certain structures.
The decision should also be based on which values you want to be able to query in the end.

In case you want to use a RDBMS, I would suggest two tables: one for the MainID and one for the address, whereas the tables may have a one-to-many relation.

Plan B would be to transfer the data set to JSON - which is easy - and store in a data base which accepts JSON. Like MongoDB or PostgreSQL.

Regards, noisefloor
Reply


Messages In This Thread
RE: Store a python list of lists in a database to use for searches later on - by noisefloor - Jun-20-2019, 06:48 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Webscrape from my webpage and store in database and send to grafana Armond 2 1,039 Jul-12-2023, 06:29 PM
Last Post: Armond
  List all possibilities of a nested-list by flattened lists sparkt 1 1,055 Feb-23-2023, 02:21 PM
Last Post: sparkt
  user input values into list of lists tauros73 3 1,250 Dec-29-2022, 05:54 PM
Last Post: deanhystad
  returning a List of Lists nafshar 3 1,229 Oct-28-2022, 06:28 PM
Last Post: deanhystad
  Creating list of lists, with objects from lists sgrinderud 7 1,864 Oct-01-2022, 07:15 PM
Last Post: Skaperen
  store all variable values into list and insert to sql_summary table mg24 3 1,298 Sep-28-2022, 09:13 AM
Last Post: Larz60+
  How to store the resulting Doc objects into a list named A xinyulon 1 2,003 Mar-08-2022, 11:49 PM
Last Post: bowlofred
  How to efficiently average same entries of lists in a list xquad 5 2,322 Dec-17-2021, 04:44 PM
Last Post: xquad
  Populate Dropdown list from Database TommyAutomagically 4 4,944 Nov-02-2021, 05:23 PM
Last Post: ndc85430
  sorting a list of lists by an element leapcfm 3 2,051 Sep-10-2021, 03:33 PM
Last Post: leapcfm

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020