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

  • Home
  • SEARCH
  • 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 547079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:56:05+00:00 2026-05-13T10:56:05+00:00

Background I’m sketching on an application that needs to perform something like this database

  • 0

Background

I’m sketching on an application that needs to perform something like this

database a >--|                          |--> fileformat 1
database b >--+--> custom application >--+--> fileformat 2
...           |                          |    ...
database n >--|                          |--> fileformat n

The databases in question are all of the same type but with different tables and structure. The objects that are to be loaded are all products of some type. The files have similar structure but not necessarily the same, some are xml, some are csv etc.

The custom application is here to ensure a consistent interface for manipulating the objects retrieved from the relational data. It is a simple web application with a few options on each product and a paginated display of the products. It adds additional data to each record that is persisted through the means of an ORM.

Only one database will be active in each instance of the application, however many fileformats can be active. The writing of these files are simultaneous.

Question

I’ve been struggling with finding the best approach for designing the conversion steps.

Is there a pattern that somehow manages to combine the different schemas into one single Model? There is the assumption here that only the fields that are present in all of the databases are supposed to end up in the model.

And what about the reverse? When the product objects are to be written to file?

I’ve looked at different patterns such as the Strategy pattern, but i’m still not having that moment where all the bits and pieces seem to fall into place.

For what it’s worth the application itself will most likely be written in PHP.

  • 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-05-13T10:56:05+00:00Added an answer on May 13, 2026 at 10:56 am

    This would be my approach:

    Each DB would have a view on it that would present the needed data to your app.

    Your app would have a layer that would read the data and reformulate it into a (fairly standard) data structure.

    Then you would have a layer that would read those standard data structures and write out to the requested files.

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

Sidebar

Ask A Question

Stats

  • Questions 359k
  • Answers 359k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Your PHP probably looks like this now: $sql = 'UPDATE… May 14, 2026 at 2:23 pm
  • Editorial Team
    Editorial Team added an answer I use a funky little jQuery plugin - jQuery Multiselect… May 14, 2026 at 2:23 pm
  • Editorial Team
    Editorial Team added an answer In Java, without byte-code generation, I would use Decorator pattern… May 14, 2026 at 2:23 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.