Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9303445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T23:29:13+00:00 2026-06-18T23:29:13+00:00

I’m working on creating a python program to interact with many different types of

  • 0

I’m working on creating a python program to interact with many different types of conceptual objects. For example, it might represent a person, in which case it’d have something like this:

type = "person"
name = "Bono"
profession = "performer"
nationality = "Irish"

However, it might also represent a magazine, in which case it’d look something like this

type = "publication"
name = "Rolling Stone"
editor = ("Jann Wenner" , "Will Dana")
founding_year = "1967"

Aside from type and name, all of the other fields are optional. Here’s the tricky bit — it’s part of code written for a scraper, so all of the other fields are determined/created on the fly. In other words, we won’t know that we need an “editor” field until the scraper spits back “editor” to the code

Ideally, this would be implemented fairly straightforwardly as a python dictionary of lists. However, we’ll be working with a large number of records — too many to keep in memory at the same time. As a result, I’d like to have database compatibility — something like Django’s MVC, so we can easily query the record set.

One option I had considered was Django fieldsets, but it looks like they’re still in beta and I worry that I’ll lose some generality in what I can store — ideally, I’d be able to store any type of data with a key, (value_list) pair. I’d love any input on the feasibility of fieldsets or example code.

Another option I had considered was a combination of the Django MVC and JSON. In this case, I’d have three columns for each object — type, name, and attributes. Attributes would be a JSON serialization (or other appropriate pickling method) of all of the other attributes, so that once you had the object, you could reconstitute it’s attributes and query the set. I’d store something like this or this (links). With this method, I’d lose the ability to easily do a search for any of the attributes in the dict.

I’d very much appreciate any input or guidance. If anyone knows of similar projects, I’d love to know.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T23:29:14+00:00Added an answer on June 18, 2026 at 11:29 pm

    This seems like an excellent opportunity to use NoSQL databases. Something like MongoDB doesn’t rely on a fixed schema, so it might be suitable for your scenario.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I've tracked down a weird MySQL problem to the two different ways I was
i got an object with contents of html markup in it, for example: string
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
Let's say I'm outputting a post title and in our database, it's Hello Y’all
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.