HI Gopinath,
2016-11-16 13:40 GMT+01:00 <[email protected]>: > Hi Luigi, > > 1. Yes I am using for commit() for notTx() and Tx() methods. Sometimes I > am getting error if i did not put this statement. That is why I added this > statement. > > my Question : Is there any problem with using this commit() statement ? > No, no problem in general, a commit() on a noTx() graph has no effect. My question is only because negative RIDs represent records that are just created and not committed yet, so I was wondering if there is a problem there. > 2. I am creating schema (Only classanem and with clusters) with java > program. Generally I will create schema with OrientStudio web console. > there I will specify all the properties and property type. Why I am > creating Vertex or Edge class from java is , We can specify number of > clusters for that vertex of Edge. If I create through OrientStudio web > console it will allocate only two clusters . > > my Question : is there any problem with allocating toomany clusters? > > There is a limitation to 32k clusters per db, but apart from this there is no problem in using many clusters. > > 3. I am not writing any test cases in my program. (note : It is Spring > boot rest services ) > > Ok, do you think you can extract the application logic in a simple piece of code that I can run to reproduce the problem? > thanks > Gopinath Chilukuri > Thanks Luigi > > On Wednesday, November 16, 2016 at 2:02:33 PM UTC+5:30, Luigi Dell'Aquila > wrote: >> >> Hi Gopinath, >> >> This is a very basic operation and your code seems to be correct, so I >> suspect there is a problem somewhere else. >> Just a couple of questions: >> - are you always using NoTx? In this case, why are you invoking >> graph.commit()? there is no need for that. >> - how do you create your schema? >> - do you have a self-contained test case that reproduces the problem? It >> will make it much easier to diagnose >> >> Thanks >> >> Luigi >> >> >> 2016-11-16 8:37 GMT+01:00 <[email protected]>: >> >>> That's only the logical code. >>> Only i missed return statement after the commit() statement. Here I am >>> pasting return statement. >>> >>> vertexObject.commit(); >>> return new ResponseEntity<String>(vertexObject.getRecord().toJSON(), >>> HttpStatus.OK); >>> >>> I have small doubt on creating of GraphFactory , Please suggest is this >>> the right way of creating graphFactory >>> Here the code I am posting. >>> >>> and for each controller I am calling factory.getNoTxGraph() method >>> >>> public class FactoryService { >>> >>> static Logger logger = Logger.getLogger(FactoryService.class); >>> >>> public static OrientGraphFactory factory; >>> >>> static { >>> >>> logger.info("factory creating"); >>> >>> factory = new OrientGraphFactory(Constants.DATABASE_URL).setupPool(10, >>> 40); >>> >>> } >>> >>> public OrientGraphFactory getGraphFactory(){ >>> >>> if(factory == null){ >>> >>> factory = new OrientGraphFactory(Constants.DATABASE_URL).setupPool(10, >>> 40); >>> >>> } >>> >>> return factory; >>> >>> } >>> >>> public static OrientBaseGraph getNoTxGraph(){ >>> >>> return factory.getNoTx(); >>> >>> } >>> >>> public static OrientBaseGraph getTxGraph(){ >>> >>> return factory.getTx(); >>> >>> } >>> >>> >>> } >>> >>> >>> Thank you >>> Gopinath Chilukuri >>> [email protected] >>> >>> >>> On Tuesday, November 15, 2016 at 7:14:33 PM UTC+5:30, >>> [email protected] wrote: >>>> >>>> Could you post more code ? >>>> >>>> Thanks >>>> >>> -- >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "OrientDB" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > > --- > You received this message because you are subscribed to the Google Groups > "OrientDB" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
