You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Initial changes to the manage topic on loading example buckets.
* Full draft. Cleanup of docs to meet standards.
* Some more edits
* Added What's New entry
* Removed space
* Update modules/introduction/partials/new-features-76.adoc
Typo fix by Peter.
Co-authored-by: Peter Searby <6184793+Peter-Searby@users.noreply.github.com>
* Added description of the inventory scope back to discussion of the travel_sample bucket.
---------
Co-authored-by: Peter Searby <6184793+Peter-Searby@users.noreply.github.com>
* The `sampleBuckets/install` REST API method now returns a JSON object containing the list of tasks Couchbase Server started to load the buckets.
49
+
In addition, the `/pools/default/tasks` REST API endpoint now takes an optional `taskId` parameter to view details about a sample bucket loading task.
50
+
See xref:manage:manage-settings/install-sample-buckets.adoc#install-sample-buckets-with-the-rest-api[Install Sample Buckets with the REST API] for more information.
51
+
48
52
=== Backup and Restore
49
53
50
54
* The Role-Based Access Control (RBAC) REST API has a new `backup` endpoint that lets you backup and restore user and user groups. See xref:rest-api:rbac.adoc#backup-and-restore-users-and-groups[Backup and Restore Users and Groups].
:description: Sample buckets contain scopes, collections, and documents that are ready to be experimented with.
2
+
:description: You can install buckets containing example scopes, collections, and documents that you can experiment with.
3
3
:page-aliases: settings:install-sample-buckets
4
4
5
5
[abstract]
@@ -8,45 +8,20 @@
8
8
[#configuring-sample-buckets]
9
9
== Sample Buckets
10
10
11
-
Sample buckets contain data for experimental use.
12
-
Sample buckets are referred to in code and command-line examples throughout Couchbase-Server documentation.
13
-
14
-
Full and Cluster administrators can install sample buckets with xref:manage:manage-settings/install-sample-buckets.adoc#install-sample-buckets-with-the-ui[Couchbase Web Console] and the xref:manage:manage-settings/install-sample-buckets.adoc#install-sample-buckets-with-the-rest-api[REST API].
11
+
Full and Cluster administrators can install sample buckets using the xref:manage:manage-settings/install-sample-buckets.adoc#install-sample-buckets-with-the-ui[Couchbase Server Web Console] and the xref:manage:manage-settings/install-sample-buckets.adoc#install-sample-buckets-with-the-rest-api[REST API].
15
12
16
13
[#scopes-collection-and-sample-buckets]
17
14
=== Scopes, Collections, and Sample Buckets
18
15
19
-
Couchbase Server Version 7.0 introduces xref:learn:data/scopes-and-collections.adoc[Scopes and Collections], which allow data within a bucket to be organized according to type.
20
-
Buckets created and used on previous versions of the server, after upgrade to 7.x, initially have all their data within the _default_ collection, which is itself within the _default_ scope.
21
-
From this point, data can be selectively migrated from the default collection into other, administrator-defined collections.
22
-
23
-
Each sample bucket provided with 7.x contains its data _either_:
24
-
25
-
* Entirely within the default scope and collection.
26
-
These buckets are `beer-sample` and `gamesim-sample`.
27
-
28
-
* Within multiple scopes and collections that have been pre-defined to exist in addition to the default scope and collection; _and_ within the default scope and collection also.
29
-
This is the configuration provided for the `travel-sample` bucket.
30
-
In total, _seven_ scopes exist within this bucket:
31
-
32
-
**`_default`.
33
-
This contains the `_default` collection; within which all documents reside.
34
-
The `_default` collection therefore itself contains all documents that existed in pre-7.0 versions of the `travel-sample` bucket.
35
-
36
-
**`inventory`.
37
-
This also contains all documents that existed in pre-7.0 versions of the `travel-sample` buckets, but in a different configuration: here, the documents are distributed, according to type, across five collections; which are named `airline`, `airport`, `landmark`, `hotel`, and `route`.
16
+
xref:learn:data/scopes-and-collections.adoc[Scopes and Collections] let you organize data within a bucket by type.
17
+
The `beer-sample` and `gamesim-sample` sample buckets store all of their data in the default scope.
18
+
The `travel-sample` bucket contains data in six scopes in addition to the `_default` scope.
19
+
These additional scopes define several collections.
20
+
The `inventory` scope has collections that organize travel data such as airlines and airports.
21
+
The data within the `tenant_agent_00` through `tenant_agent_04` scopes let you experiment with multi-tenancy applications.
38
22
39
-
**`tenant_agent_00` to `tenant_agent_04`.
40
-
Each of these five scopes contains two collections; which are named `users` and `bookings`.
41
-
42
-
Since all three sample buckets contain, in their default collection, all data they held in pre-7.0 versions of Couchbase Server, programs written to access this data in its original locations will be able to continue doing so with minimal adjustment.
43
-
All three buckets can also be used for experiments with _migration_, whereby the data is selectively redistributed into administrator-created collections.
44
-
See xref:manage:manage-xdcr/replicate-using-scopes-and-collections.adoc#migrate-data-to-a-collection-with-the-ui[Migrate Data to a Collection with the UI].
45
-
46
-
The `travel-sample` bucket contains travel-related data already in migrated form, within the collections in the scope `inventory`.
47
-
The bucket can thus be used for immediate experimentation with application-access to scopes and collections.
48
-
49
-
The `travel-sample` bucket also contains data within the `tenant_agent` scopes, which is appropriate for experimentation with _multi-tenancy-based_ application access.
23
+
NOTE: The `_default` scope of the `travel_sample` bucket duplicates all of the data stored in the `inventory` and `tenant_agent_00` through `tenant_agent_04` scopes.
24
+
This duplication makes the bucket compatible with scripts and applications written for versions of Couchbase Server earlier than 7.0 that did not support scopes and collections.
50
25
51
26
[#install-sample-buckets-with-the-ui]
52
27
== Install Sample Buckets with the UI
@@ -56,9 +31,9 @@ The *Sample Buckets* screen now appears, as follows:
Note that if one or more sample buckets have already been loaded, they are listed under the *Installed Samples* section of the page.
34
+
If one or more sample buckets are already loaded, they're listed under the *Installed Samples* section of the page.
60
35
61
-
For information on assigning roles to users, so as to enable them to access sample buckets following installation, see xref:manage:manage-security/manage-users-and-roles.adoc[Manage Users and Roles].
36
+
See xref:manage:manage-security/manage-users-and-roles.adoc[Manage Users and Roles] to learn how to assign roles to users to grant access to the sample buckets.
62
37
63
38
To install, select one or more sample buckets from the displayed list, using the checkboxes provided.
64
39
For example, select the `travel-sample` bucket:
@@ -69,8 +44,8 @@ If there is insufficient memory available for the specified installation, a noti
For more information about using the REST API, including details of how to retrieve a list of available sample buckets, see xref:rest-api:rest-sample-buckets.adoc[].
93
+
For information about deleting buckets (including sample buckets), see xref:rest-api:rest-bucket-delete.adoc[].
95
94
96
-
For further information on using the REST API, including details of how to retrieve a list of currently available sample buckets, see xref:rest-api:rest-sample-buckets.adoc[Managing Sample Buckets].
97
-
For information on _deleting_ buckets (including sample buckets), see xref:rest-api:rest-bucket-delete.adoc[Deleting Buckets].
0 commit comments