Duplicate entries in metastrings

By lucas

Hi,

I am using elgg but I found that the metastrings table have duplicate strings values. So when this happen the searchs by metadata does not work anymore (because it only search by one metadata).

I don't know why there are duplicate strings entries in this table, but I know that every time I run a script that inserts a lot of objects in my database (10000 objects) this happen.

the code is very simple I just get the data from a csv file and save a new elggobject with the metadata.

This is not the only way the data is being duplicate because I have this issue even before the script, but with the script it happend all the time.

Anyone has an idea of this?

Thanks