Dataset Tag Limit XYChart

I have a table in a database, this table have many rows, around 1 million of rows, When i try graph this data, XYChart disappear for ten minutes and don’t work. how can i graph this data more faster in XYChart?. What is the limit of rows in a dataset tag?