Closed japel closed 8 years ago
hi japel, i think your adapter doesn't answer... which one do you use? or this could be the database performance problem...
I am using sails-mysql... I will check the server logs and see if anything points to performance
It was a performance issue... Thanks for pointing me into that direction. I'll close this.
sails-mysql use union for populate, you could try using offshore-sql who use left join ... i would be curious to see performance diff
populate_offshore-sql: 55265ms populate_sails-mysql: 3339517ms
:flushed:
@japel offshore-sql would be 60x faster than sails-mysql in this case ! Amazing !
yeah, crazy!
@japel which query did you used for your test ? did you used skip or limit on populate ?
@atiertant no, no skip and no limit
thanks for your tests
Hey there!
I am using sails-hook-orm-offshore with sails 0.12.4 and I have 2 models:
ModelA containing ~2000 records and ModelB containing ~80000 I'm associating ModelA with ModelB with a one-to-many association via an ID field. When I:
nothing is logged to console, but if I:
records are logged... The limitation seems to work until weird 1005 records, so if I .limit(1006) it again stops populating, and nothing gets logged.
What could be happening here?