Hello,
Large datasets should be published as hosted feature layers to ArcGIS Online. This link documents the different types of data that can be uploaded. Please navigate to Content > My Content > New Item (see screenshot).
You will then be able to open the hosted feature layer in the Map Viewer. I hope this helps!