Marek Posted September 18, 2015 Share Posted September 18, 2015 Hi, I'm thinking about what could be a proper structure for one project. basically, each user is expected to upload many images over time for himself. lets say max about 1000 images per each user. plus, each image needs to have defined 3 integer values that relates to the image. so my question is what could be a proper structure for this? As far as i know repeater isn't a good choice for this. I was thinking about creating template that would be allowed to be a child page under user template, and each such a page would store image and those 3 integer fields. what do you think ? thanks ! Link to comment Share on other sites More sharing options...
LostKobrakai Posted September 18, 2015 Share Posted September 18, 2015 I'd not store the images below the user, but rather use another place in the pagetree and link them with an pagetable to the user. 1 Link to comment Share on other sites More sharing options...
Marek Posted September 18, 2015 Author Share Posted September 18, 2015 you mean creating a pagetable field for user template and storing pagetable items as a children of some other custom page? do i understand it correctly ? if so, what would it be good for? those images are only important for a particular user, expected to be shown on the front-end only if he is logged-in, and upload would be done on the front end only. Link to comment Share on other sites More sharing options...
LostKobrakai Posted September 18, 2015 Share Posted September 18, 2015 Yeah, that's what I thought about. It's just that I don't like to pollute the admin section of the page tree with things, that aren't admin related, but content. 1 Link to comment Share on other sites More sharing options...
Marek Posted September 20, 2015 Author Share Posted September 20, 2015 would that be relatively good structure performance wise? i mean, that custom parent page storing all the images could then have millions of children .... Link to comment Share on other sites More sharing options...
LostKobrakai Posted September 20, 2015 Share Posted September 20, 2015 Millions per user or millions in total. The first one would definitely be problematic, while the first one wouldn't. Link to comment Share on other sites More sharing options...
Marek Posted September 20, 2015 Author Share Posted September 20, 2015 each user would be expected to upload max around 1000 images. if we have 1000 users that could make a million. Link to comment Share on other sites More sharing options...
LostKobrakai Posted September 20, 2015 Share Posted September 20, 2015 Then I'd say not using pagetables as the inputfield is not paginated. Link to comment Share on other sites More sharing options...
mr-fan Posted September 20, 2015 Share Posted September 20, 2015 BatchChildEditor - provide in the dev version a really nice feature to active and replace the content or children tab with a Lister Interface so handling many pages would be possible for every such userpage. regards mr-fan Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now