Hi Kristoffer, I don't know the code of getProvider and getPublication, so I don't know if the problem is there. I suggest you to let this function return the "id" you extract from the list and try getProvider alone with that id.
Luigi 2014-11-06 15:56 GMT+01:00 Kristoffer Larsen <[email protected]>: > Hello agian and thanks for you help! > > I almost got it working now, and i belive I have learned at ton! > However, as you can see in my last problem, im trying to do two queries in > a for loop, and the for loops skips the element before it can be found in > the database, any suggestion here, or should i just do my inital sql query > bedre so I can include all the relevant information there, rather than > doing several quries in a for loop. > > > <https://lh3.googleusercontent.com/-8s2HovJioQI/VFuMDNx_CNI/AAAAAAAAAC0/IAbHZRfzog4/s1600/Skjermbilde%2B2014-11-06%2Bkl.%2B15.53.30.png> > > > kl. 14:55:10 UTC+1 torsdag 6. november 2014 skrev Luigi Dell'Aquila > følgende: >> >> Hi Kristoffer, >> >> Of course you can use this approach, this is not bad practice in general, >> but sometimes you can find easier solutions to do that. >> Here are a couple of examples, they all work fine for me. >> I hope you can find some answers just looking at them >> >> [image: Immagine in linea 1][image: Immagine in linea 3][image: Immagine >> in linea 2] >> >> >> >> 2014-11-06 14:43 GMT+01:00 Kristoffer Larsen <[email protected]>: >> >> Is this at all possible, or is this a bad pratice? >>> I am sort of stumbling in the dark on what is good and bad orientDB >>> pratice in term of speed and sql. >>> >>> >>> <https://lh5.googleusercontent.com/-z8_tF_mVQAg/VFt67VoYLbI/AAAAAAAAACU/itLcTOH-mJ8/s1600/Skjermbilde%2B2014-11-06%2Bkl.%2B14.41.16.png> >>> >>> >>> kl. 13:11:03 UTC+1 torsdag 6. november 2014 skrev Luigi Dell'Aquila >>> følgende: >>>> >>>> Hi Kristoffer, >>>> >>>> Invoking server side functions from inside other functions should be >>>> straightforward. >>>> Could you post some of your code? Maybe we can help you better that way. >>>> >>>> Luigi >>>> >>>> >>>> >>>> 2014-11-06 13:06 GMT+01:00 BojanV <[email protected]>: >>>> >>>>> Did you try with sql batch? >>>>> >>>>> https://github.com/orientechnologies/orientdb/wiki/SQL-batch >>>>> >>>>> -- >>>>> >>>>> --- >>>>> 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. > -- --- 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.
