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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:02:06+00:00 2026-05-28T16:02:06+00:00

I’m implementing a file system. Folders each have an ACL, which will basically just

  • 0

I’m implementing a file system. Folders each have an ACL, which will basically just be a list of user ids that are allowed to read/write to the folder. I want to implement this by copying ACLs from upper level folders down to lower level folders – I want inherited permissions, but I don’t want to have to look them up at read-time. I store the relationship between folders as a reference to the superfolder in the subfolder.

The following order of operations, then, is hard to solve with the HRD:

  1. Put folder B in the datastore as a subfolder of folder A, which already exists.
  2. Change the permissions on A.

The problem is that, when I change the permissions on A in step 2, I need to look up all of the children of A so I can apply the permission changes to them as well. Unfortunately, this means a query, so B might not show up in that query. B could miss the permission changes!

The only solution I’ve thought of so far is to store “sub-folder” relationships bi-directionally: A has a reference to all of its subfolders, and B has a reference to its superfolder. Then I could use a cross-group transaction to update A and B simultaneously, and wouldn’t need a query in step 2. This might be better anyway since direct gets can be cached easily, don’t require an index scan, etc.

Anyone have any other ideas? I don’t like the redundant storage needs of this solution, or the need for XG transactions.

  • 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-28T16:02:07+00:00Added an answer on May 28, 2026 at 4:02 pm

    The only transactional and strongly consistent unit in the datastore is an entity group. So if you want a reader of B to know about changes to A with transactional guarantees, A and B need to be in the same group. It sounds like you’re trying to avoid the disadvantages of that approach (contention, write rate per group), so we need to find an acceptable tradeoff.

    For instance, if it’s unacceptable for the A and B entities to be in the same group, but it would be acceptable for instances of this kind of metadata to live in the same group (such as if it is rarely updated) and separately from the original entities (if XG update of the entity and this metadata is OK), you can just keep the data separate and analogous.

    If you have a data structure that can quickly identify all of B’s hierarchy ancestors, you can perform an asynchronous read of all ancestors when determining the aggregate metadata properties for B and its ancestors. You could manage this by storing full paths with the entities. This involves more datastore operations (on the order of path length), but not much more request time, and you get to keep this data normalized.

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

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
Basically, what I'm trying to create is a page of div tags, each has
I have a text area in my form which accepts all possible characters from
I have a reasonable size flat file database of text documents mostly saved in
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,

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.