Can we store more than 500000 items into a list in apex? I tried this and is working fine. So the limit of 50000 has been lift up? When this update was made to salesforce? any idea?
As per the documentation, there is no fixed limit on the size of collections now, but you are constrained by the available heap size:
There is no limit on the number of items a collection can hold. However, there is a general limit on heap size.
The previous limit was removed in the Spring '10 release, and is documented in the release notes.