Fixing the Infamous “Maximum SOQL Limit” Error in Apex

|
| By Webner

The “Maximum SOQL Limit” error, often accompanied by the message System.LimitException: Too many SOQL queries: 101 is one of the most common and frustrating problems faced by Salesforce developers. It signifies a violation of a fundamental governing rule (governor limit)

Moodle | New Database table not getting created

| By Webner

In Moodle, we were creating a new table for our custom plugin in db/install.xml file. Install.xml file : <TABLES> <TABLE NAME=”test_student” COMMENT=”Student details.”> <FIELDS> <FIELD NAME=”id” TYPE=”int” LENGTH=”10″ NOTNULL=”true” SEQUENCE=”true”/> <FIELD NAME=”user_name” TYPE=”text” NOTNULL=”true”  SEQUENCE=”false”/> <FIELD NAME=”userid” TYPE=”int” LENGTH=”10″ NOTNULL=”true”