function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
chandrasekhar reddychandrasekhar reddy 

Question about debug logs?

Hi,
I have below debug logs.
00:52:52.736|LIMIT_USAGE_FOR_NS|(default)|
  Number of SOQL queries: 68 out of 100 ******* CLOSE TO LIMIT
  Number of query rows: 39 out of 50000
  Number of SOSL queries: 0 out of 20
  Number of DML statements: 12 out of 150
  Number of DML rows: 12 out of 10000
  Maximum CPU time: 706 out of 10000
  Maximum heap size: 0 out of 6000000
  Number of callouts: 0 out of 100
  Number of Email Invocations: 0 out of 10
  Number of future calls: 0 out of 50
  Number of queueable jobs added to the queue: 0 out of 50
  Number of Mobile Apex push calls: 0 out of 10

00:52:52.736|LIMIT_USAGE_FOR_NS|ASF|
  Number of SOQL queries: 9 out of 100
  Number of query rows: 5 out of 50000
  Number of SOSL queries: 0 out of 20
  Number of DML statements: 0 out of 150
  Number of DML rows: 0 out of 10000
  Maximum CPU time: 0 out of 10000
  Maximum heap size: 0 out of 6000000
  Number of callouts: 0 out of 100
  Number of Email Invocations: 0 out of 10
  Number of future calls: 0 out of 50
  Number of queueable jobs added to the queue: 0 out of 50
  Number of Mobile Apex push calls: 0 out of 10

00:52:52.736|LIMIT_USAGE_FOR_NS|CRMfusionDBR101|
  Number of SOQL queries: 4 out of 100
  Number of query rows: 0 out of 50000
  Number of SOSL queries: 0 out of 20
  Number of DML statements: 0 out of 150
  Number of DML rows: 0 out of 10000
  Maximum CPU time: 0 out of 10000
  Maximum heap size: 0 out of 6000000
  Number of callouts: 0 out of 100
  Number of Email Invocations: 0 out of 10
  Number of future calls: 0 out of 50
  Number of queueable jobs added to the queue: 0 out of 50
  Number of Mobile Apex push calls: 0 out of 10

00:52:52.736|CUMULATIVE_LIMIT_USAGE_END
In above logs, what are LIMIT_USAGE_FOR_NS|(default) , LIMIT_USAGE_FOR_NS|ASF and LIMIT_USAGE_FOR_NS|CRMfusionDBR101  ?
Could you please explain me what those _NS terms are?
EnreecoEnreeco
default, ASF and CRMfunctionDBR101 are all installed namespaces in your ORG (that is you have packages that refers to that namespaces).
The "default" is ofcourse the default namespace (your ORG wide namespace).
When you execute some code, each namespace has its own governor limits (this avoids external packages to make the destination org "heavier"), that's why you see different counts.
Hope this helps!
--
May the Force.com be with you!
chandrasekhar reddychandrasekhar reddy
Thanks for your answer. How can I install/create a namespace ? Also, where can I find already installed namespaces in my org? Can i find under setup?
EnreecoEnreeco
To add a namespace to your ORG (remember that you cannot undo this), go to Create > Packages > in Developer Settings click on edit and add a namespace to your org: if you are planning to create a managed package, select the package you want to link to this org (also this cannot be undone).
To see all installed packages, go to Build > Installed packages: you will find all packages installed and their namespaces (columns namespace prefix): if a row in the table doesn't have a namespace prefix set, this means it is an "unamanged package".