> On March 20, 2018, 8:06 p.m., kalyan kumar kalvagadda wrote: > > Lina, Code looks good but we need to run some performance tests with some > > huge data to actually see the results. > > Simple unit test may not be good enough.
The performance test code and result is posted in jira sentry-2184 > On March 20, 2018, 8:06 p.m., kalyan kumar kalvagadda wrote: > > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java > > Lines 2616 (patched) > > <https://reviews.apache.org/r/66146/diff/1/?file=1982529#file1982529line2616> > > > > Isn't using fp.setGroup(FetchPlan.DEFAULT) a better option? This line is useless. Removing "pm.getFetchPlan().setMaxFetchDepth(2);" does not make difference. As long as the fetch groups are added to the pm, the MPath is fetched in bulk. - Na ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/66146/#review199566 ----------------------------------------------------------- On March 20, 2018, 11:54 p.m., Na Li wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/66146/ > ----------------------------------------------------------- > > (Updated March 20, 2018, 11:54 p.m.) > > > Review request for sentry, Alexander Kolbasov, Brian Towles, kalyan kumar > kalvagadda, and Sergio Pena. > > > Repository: sentry > > > Description > ------- > > Configure DataNucleus to fetch MPath in bulk to improve performance > > > Diffs > ----- > > > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/model/package.jdo > d883c51 > > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java > 4521ad4 > > > Diff: https://reviews.apache.org/r/66146/diff/2/ > > > Testing > ------- > > Run unti tests. > Check log message that veries that the query for MPath is issued in bullk. > > > Thanks, > > Na Li > >