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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:05:26+00:00 2026-06-17T22:05:26+00:00

I need to share textual data between 2 users. I’m probably going to use

  • 0

I need to share textual data between 2 users. I’m probably going to use some Android Cloud service (Open to Suggestion) to do so but I’m not sure about a good PK. I didn’t want to use DATETIME as the PK but I don’t know any other way. What is a good PK to share between 2 (or more) users without much overhead?

If I have in my SharedTable 100 entries and my friend only has 2 entries in his ShareTable then I would need both his (2) PK and my (101) PK to share any edits to the data between myself, him and anyone else I’m sharing this information with so it seems like auto-incrementing it out of the question.

I can’t imagine this isn’t a common problem but I can’t wrap my head around it so it’s hard to get my point across. If you need more information let me 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-17T22:05:27+00:00Added an answer on June 17, 2026 at 10:05 pm

    Use uids (unique ids) as your pk, this will guarantee unique entries wherever they are created so combining, updating etc can be done.

    java.util.UUID.randomUUID();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For testing purposes, I need to share some definitions between Tcl and C. Is
A content provider is only required if you need to share data between multiple
I need to share data between classes in C#. Sounds easy enough. I have
I would need to share data (not necessarily a large amount) between a native
i need to share some strings in my c++ program. should i use #define
I need to share data between two(or maybe more) comboboxes, but I want to
I need to share some text from my app to google plus and I
I need to share a stack of strings between processes (possibly more complex objects
I have 2 Java EE applications which need to share some common user related
I have a few different applications that i need to share code between to

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.