hello, something is strange on my website: i'm try...
# orm-help
n
hello, something is strange on my website: i'm trying to give accurate feedback to the user as for the time remaining for complete import of csv file. it takes on average less than 1 second to insert the record in the db but when using a timer i get a strange value of 30 seconds
Copy code
import160: 35794.5400390625 ms
App.js:114 35.795
App.js:104 import161: 35966.64892578125 ms
App.js:114 35.967
App.js:104 import162: 36198.051025390625 ms
App.js:114 36.198
`
Copy code
start = Date.now();
              console.time("import" + index);
              await <http://axios.post|axios.post>(process.env.REACT_APP_API_URL + "/movies", {
                movie,
              });
              console.timeEnd("import" + index);
              end = Date.now();
              numImported++;
r
@Nicolas Sursock 👋 If I understood correctly, is the data added via Prisma taking less that 1 second but adding a timer increases the time?
n
no the backend logs show there can be like 120 insert in a second, but when i time it in the client, the code i shared shows it takes 30 seconds which is wrong.
r
What about adding a timer in the backend itself?