guides:bfs:couchbase:storing_openinsight_dictionaries_and_data_in_couchbase

Storing OpenInsight Dictionaries and Data in Couchbase

1. From the OpenInsight 10 IDE select New, Database Components, OpenInsight Table.

cb_021.jpg

From the New Table dialog box, create an OpenInsight table. The table Location will use the volume name defined for your Couchbase Bucket. In the example below, we are creating an OpenInsight table called CUSTOMER that resides in the volume CBBFS_EXAMPLES_B64.

cb_022.jpg

A warning message will display, click Yes to continue.


cb_022a.jpg

The CUSTOMER table is created and dictionaries can be entered via the TableDesigner.

cb_023.jpg

From the OpenInsight IDE, go to View, Tool Panels, Database.

cb_024.jpg

Now that we have created an OpenInsight table within our Couchbase Bucket, the volume and table will display.

cb_025.jpg

If we right click on the volume we can choose a variety of database management tools. Here we are going to Alias a table from another directory so that we can then copy the rows from the aliased table to our new table that is hosted in the Couchbase Bucket.

cb_026.jpg

In this example we are aliasing the CUSTOMER table in the EXAMPLES\DATA volume with the name EXAMPLES_CUSTOMER.



cb_027.jpg

From the Assistant we will choose COPY_ROW.

cb_028.jpg

We will copy the dictionaries from the aliased table DICT.EXAMPLES_CUSTOMER to the Couchbase table called DICT.CUSTOMER.



cb_029.jpg

We will copy the data from the aliased table EXAMPLES_CUSTOMER to the Couchbase table called CUSTOMER.



cb_030.jpg

From the Couchbase Console we can see that the Bucket CBBFS_EXAMPLES_B64 now contains data.

cb_031.jpg

All OpenInsight dictionaries and data reside inside the Couchbase Bucket CBBFS_EXAMPLES_B64 as documents. Because we created this bucket as Base64 you can see that the document content has been converted to Base64.

cb_032.jpg

From TCL we can type the following:

LIST CUSTOMER WITH ST = “NJ” CUSTOMER_NAME TOWN STATE BY CUSTOMER_NAME

cb_033.jpg

The data OpenInsight data that is stored in the Couchbase Bucket can be treated as if it were in a LinearHash volume.

cb_034.jpg

  • guides/bfs/couchbase/storing_openinsight_dictionaries_and_data_in_couchbase.txt
  • Last modified: 2023/10/25 10:49
  • by 127.0.0.1