{"id":1064,"date":"2019-05-20T22:10:56","date_gmt":"2019-05-20T20:10:56","guid":{"rendered":"https:\/\/userblogs.fu-berlin.de\/afibinuk2019\/?p=1064"},"modified":"2019-06-06T14:29:49","modified_gmt":"2019-06-06T12:29:49","slug":"my-job-as-developer-tricky-task","status":"publish","type":"post","link":"https:\/\/userblogs.fu-berlin.de\/afibinuk2019\/2019\/05\/20\/my-job-as-developer-tricky-task\/","title":{"rendered":"My job as a developer | Tricky task"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1423 alignleft\" src=\"https:\/\/userblogs.fu-berlin.de\/afibinuk2019\/files\/2019\/05\/WhatsApp-Image-2019-06-06-at-11.22.34-169x300.jpeg\" alt=\"\" width=\"169\" height=\"300\" srcset=\"https:\/\/userblogs.fu-berlin.de\/afibinuk2019\/files\/2019\/05\/WhatsApp-Image-2019-06-06-at-11.22.34-169x300.jpeg 169w, https:\/\/userblogs.fu-berlin.de\/afibinuk2019\/files\/2019\/05\/WhatsApp-Image-2019-06-06-at-11.22.34-768x1365.jpeg 768w, https:\/\/userblogs.fu-berlin.de\/afibinuk2019\/files\/2019\/05\/WhatsApp-Image-2019-06-06-at-11.22.34-576x1024.jpeg 576w, https:\/\/userblogs.fu-berlin.de\/afibinuk2019\/files\/2019\/05\/WhatsApp-Image-2019-06-06-at-11.22.34.jpeg 900w\" sizes=\"auto, (max-width: 169px) 85vw, 169px\" \/>I kept working on my project today at my workplace. All the other days, I was able to write all the time without even thinking, but today I had one problem which took me a lot of time. I\u00a0currently\u00a0program a tool to synchronize the local database with a CRM (Costumer Relationship Management). First I had no field on the CRM that I could use as\u00a0an id\/primary key. I need such field because it is possible that some people have the same\u00a0last-\u00a0and first name. Later I found out, that I could just create a new field and fill it with the id from the database. Later I found out that I had the problem caused in the moment I\u00a0requested\u00a0all contacts to be shown. I already need the id field because the normal function that\u00a0requests\u00a0all contacts, returns just a list with all contacts and their\u00a0last and first name.<\/p>\n<p><!--more--><\/p>\n<p>To do a small comparison as local database without id\/primary key would be not possible and to get my field created (the id\/primary key field) I would need another\u00a0request. I can get up to 100 contacts with one request and when I want all the details I need to do another request for each contact. When I have 20.000 contacts then I already need to make 200 requests to get them all. But I also need 20.000 extra requests just to get the id, and maybe one contact isn\u2019t on the CRM and then I also would need another request per contact.<\/p>\n<p>I contacted a developer from the CRM and he told me that they\u00a0currently\u00a0have one\u00a0parameter\u00a0which is still in beta and with this\u00a0parameter\u00a0I\u00a0could add another field to the get all contacts result.<\/p>\n<p>I tried his advice and it was working perfectly. Now instead of around 40200 requests I need \u201cjust\u201d 200 to compare the database with the CRM.<\/p>\n<p>This assumes my job here. I do such programming stuff all the day. Somehow annoying, but the results are always\u00a0positive\u00a0and satisfying.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I kept working on my project today at my workplace. All the other days, I was able to write all the time without even thinking, but today I had one problem which took me a lot of time. I\u00a0currently\u00a0program a tool to synchronize the local database with a CRM (Costumer Relationship Management). First I had &hellip; <a href=\"https:\/\/userblogs.fu-berlin.de\/afibinuk2019\/2019\/05\/20\/my-job-as-developer-tricky-task\/\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eMy job as a developer | Tricky task\u201c<\/span> weiterlesen<\/a><\/p>\n","protected":false},"author":4272,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[91],"tags":[234015,599,338],"class_list":["post-1064","post","type-post","status-publish","format-standard","hentry","category-allgemein","tag-developer","tag-programming","tag-work"],"_links":{"self":[{"href":"https:\/\/userblogs.fu-berlin.de\/afibinuk2019\/wp-json\/wp\/v2\/posts\/1064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/userblogs.fu-berlin.de\/afibinuk2019\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/userblogs.fu-berlin.de\/afibinuk2019\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/userblogs.fu-berlin.de\/afibinuk2019\/wp-json\/wp\/v2\/users\/4272"}],"replies":[{"embeddable":true,"href":"https:\/\/userblogs.fu-berlin.de\/afibinuk2019\/wp-json\/wp\/v2\/comments?post=1064"}],"version-history":[{"count":3,"href":"https:\/\/userblogs.fu-berlin.de\/afibinuk2019\/wp-json\/wp\/v2\/posts\/1064\/revisions"}],"predecessor-version":[{"id":1424,"href":"https:\/\/userblogs.fu-berlin.de\/afibinuk2019\/wp-json\/wp\/v2\/posts\/1064\/revisions\/1424"}],"wp:attachment":[{"href":"https:\/\/userblogs.fu-berlin.de\/afibinuk2019\/wp-json\/wp\/v2\/media?parent=1064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/userblogs.fu-berlin.de\/afibinuk2019\/wp-json\/wp\/v2\/categories?post=1064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/userblogs.fu-berlin.de\/afibinuk2019\/wp-json\/wp\/v2\/tags?post=1064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}