Primary Key Violation

2 views
Skip to first unread message

Ryan D'souza

unread,
Feb 7, 2014, 7:42:30 PM2/7/14
to BG-Social...@googlegroups.com
HI,
  Do we have to take care of primary key violations ?. 

For eg: If I try to populate the db after I already have once earlier, should an error be returned if there is a primary key violation from the insertEntity() function ?

Regards
Ryan

Sumita Barahmand

unread,
Feb 7, 2014, 8:16:39 PM2/7/14
to BG-Social...@googlegroups.com
Hi,

Yes, the primary key is unique and trying to insert records with the
same primary key should result in errors.


P.S. Make sure your recreate the schema between multiple load rounds.
The schema creation will remove all the data already available in the
data store.
> --
> You received this message because you are subscribed to the Google Groups
> "BG Social Benchmark" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to BG-SocialBenchm...@googlegroups.com.
> Visit this group at http://groups.google.com/group/BG-SocialBenchmark.
> For more options, visit https://groups.google.com/groups/opt_out.

Ryan D'souza

unread,
Feb 8, 2014, 12:12:00 AM2/8/14
to BG-Social...@googlegroups.com
Hi Sumita,
  The create schema method does not seem to be called each time i use  -load or  -loadindex  while running bg;
Regards,
Ryan



You received this message because you are subscribed to a topic in the Google Groups "BG Social Benchmark" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/BG-SocialBenchmark/iJ_8mewQ5QA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to BG-SocialBenchm...@googlegroups.com.

Ryan D'souza

unread,
Feb 8, 2014, 1:19:43 AM2/8/14
to BG-Social...@googlegroups.com
Hi Sumita,
    Do we need to assume that a database is already created and present before we run bg. Or do we also have to take care of the database creation and deletion ?
Regards,
Ryan

Sumita Barahmand

unread,
Feb 8, 2014, 7:50:59 AM2/8/14
to BG-Social...@googlegroups.com
Hi,

Every time you want to run BG with the -load parameter, you need to
first run it with the -schema parameter to create the schema prior to
the load.

Before running experiments with BG you need to create schema and load
data into the data store.
Reply all
Reply to author
Forward
0 new messages