Closed dotancohen closed 10 years ago
This is probably due to RAND(). Instead, since we know the amount of rows in the table, on tables with a primary key we should choose ids randomly in Python and then select those.
For this, we should store in the Table object the output of "DESCRIBE TABLE" (self.columns = {}) and we could then parse it for a primary key.
self.columns = {}
This is probably due to RAND(). Instead, since we know the amount of rows in the table, on tables with a primary key we should choose ids randomly in Python and then select those.