Database Reference
In-Depth Information
Figure 2-8 shows that ritaf has been added as a follower of jhas-
sell.
Figure 2-8 . Update works as an insert for map of followers for nonexisting row key (e.g.,
twitter_id)
7.
To delete an element from the map we need to execute, use this com-
mand:
delete followers['guestuser'] from users
where twitter_id='imvivek';
You can see that the list of followers for imvivek is reduced to
four followers after deletion (see Figure 2-9 ).
Figure 2-9 . After deleting guestuser as a follower for imvivek
With that said, we can add a dynamic column as a key-value pair
using collection support.
Dynamic Columns via cqlsh Using Set Support
 
 
 
 
Search WWH ::




Custom Search