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 4060230
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:18:42+00:00 2026-05-20T15:18:42+00:00

The subject may be misleading. Essentially, I have 3 "entities" with relationships between them.

  • 0

The subject may be misleading. Essentially, I have 3 "entities" with relationships between them. only one of the entities needs to be persistent (between server restarts). I still want DB functionality across the non-persistent entities … for example queries.

What’s the right pattern to handle this?

I thought about an in-memory DB, but as one of my entities does need to be persistent, i don’t think this is an option as the non-persistent entities would be in a different persistence unit.

another thought was just keep everything persistent, but wipe the non-persistent tables when the system restarts.

  • 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-20T15:18:43+00:00Added an answer on May 20, 2026 at 3:18 pm

    You could have two persistence units. One two a disk database, and one to an in-memory database.

    The relationship would need to be transient, or possibly storing the foreign key to A and B. Or just don’t have the relationship between the two, just perform a query to find A or B when required, as a relationship in a persistent entity that is not persisted seems odd.

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

Sidebar

Related Questions

I have this code mail($to, 'Some Subject', 'message'); If $to is gmail.com mail server
Well, the subject says it all, basically. I have a command-line utility that may
i have the following code $subject = Subject Here; $headers = 'MIME-Version: 1.0' .
I think I may have made a mess of my controllers. I have a
Just want a basic understand of what parts a email message may have. I
I would like to have your opinion about the subject version control, but focusing
I have some strings, entered by users, that may look like this: ++7 7++
I have my own class Event that has few variables like subject and start
I have multiple clients and a single server, which communicate object updates via TCP.
I'm brand new to the subject and very lost. I have a text box

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.