For an example of a use case, take the following:
create class Movie
create property Movie.title STRING
create property Movie.thumbs EMBEDDEDMAP SHORT
insert into movie (title, thumbs) values ('Chocolat', {'Ebert':
4,'Roeper':3})
insert into movie (title, thumbs) values ('Taken', {'Ebert':3,'Roeper':
4})
insert into movie (title, thumbs) values ('Star Trek', {'Ebert':
3,'Roeper':2})
insert into movie (title, thumbs) values ('Gone With the Wind',
{'Ebert':4})
insert into movie (title, thumbs) values ('Dark Knight', {'Roeper':4})
(Let's say there are 1 million movies, and we have many other
reviewers as well.)
I'd like to efficiently do the following types of queries:
select from movie where thumbs containskey "Ebert"
select from movie where thumbs[Roeper] = 4
Without an index, these queries are terribly slow.
Steve