Re: [development] Staging content to production
"Scott Reynolds" <sdrreynolds@gmail.com> writes:
ok...but what happens when your user base excedes 1000.
When you had 1,500 users, their uids would range from 1,001 to 2,501. Not an issue. Larry Garfield <larry@garfieldtech.com> writes:
The problem is that I may not know in advance how many I'll need. That's especially true with a site where users can supply content arbitrarily, such as anything with a forum.
You're making the same mistake. User-contributed content would start at 1,001 and go up. You won't run out of space. As I understand Dave's approach, no normal content or users go in the id<1000 space. Only "configuration" users/nodes/blocks/vocabularies/terms go there, things that are created and maintained by the site developer. If you are pre-creating nodes for every item in a library or a voc term for every word in the dictionary, then reserve 1,000,000 ids instead of 1,000. Otherwise, what site will ever run out of room? Barry
On Saturday 17 June 2006 13:12, Barry Jaspan wrote:
As I understand Dave's approach, no normal content or users go in the id<1000 space. Only "configuration" users/nodes/blocks/vocabularies/terms go there, things that are created and maintained by the site developer. If you are pre-creating nodes for every item in a library or a voc term for every word in the dictionary, then reserve 1,000,000 ids instead of 1,000. Otherwise, what site will ever run out of room?
Barry
"640 nodes should be enough for anybody." :-) -- Larry Garfield AIM: LOLG42 larry@garfieldtech.com ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson
On 17 Jun 2006, at 8:33 PM, Larry Garfield wrote:
"640 nodes should be enough for anybody." :-)
This could be a bad idea. but how about negative node id's? wouldn't require reshuffling of content on existing sites. -- Adrian Rossouw Drupal developer and Bryght Guy http://drupal.org | http://bryght.com
On 18 Jun 2006, at 4:33 AM, Jenny Hsueh wrote:
This could be a bad idea. but how about negative node id's?
I was thinking of that too, will make things a lot cleaner.
no weird upper limits either. -- Adrian Rossouw Drupal developer and Bryght Guy http://drupal.org | http://bryght.com
More stuff to consider: " You are now reading the first example newsentry. Follow this link to edit or remove it" " Welcome to your new site. This page is the first page in your "about us" hierarchy. Follow this link to write your personal about us page." Those are nodes. Those are content. And they are configuration. They should ship with install profiles. Yet also import and export under certain conditions. Op zondag 18 juni 2006 04:21, schreef Adrian Rossouw:
This could be a bad idea. but how about negative node id's?
I think the best design is to: a) allow multiple node-types. IE $node->types = array ('book', 'blog') b) add a type 'special' (better names are welcome). Any node with that type is considered special and configuration. c) re-use these nodes to store mission, footer, welcome etc (I developed microcontent.module for this cery case where I wanted those "variables" as well as blocks to be import-exportable)
Exactly right. Thanks for clarifying. -Dave On Saturday 17 June 2006 11:12, Barry Jaspan wrote:
As I understand Dave's approach, no normal content or users go in the id<1000 space. Only "configuration" users/nodes/blocks/vocabularies/terms go there, things that are created and maintained by the site developer. If you are pre-creating nodes for every item in a library or a voc term for every word in the dictionary, then reserve 1,000,000 ids instead of 1,000. Otherwise, what site will ever run out of room?
Barry
participants (6)
-
Adrian Rossouw -
Barry Jaspan -
Bèr Kessels -
Dave Cohen -
Jenny Hsueh -
Larry Garfield