7

When you open problematic code and someone actually queried all the items from db inside for loop... And took only one item on specific index... Instead of iterating over items from query result... 😓😓

Comments
  • 2
    while(orm->select(*)->results() as row){
    if row.id = "45643"? return row
    }
  • 3
    @xewl almost :D

    More like this:

    all = db.table.all()
    length = len(all)
    ans = []
    for i in range(length):
    res = db.table.all()
    item = res[i]
    if cond:
    ans.add(item)
  • 1
    @Khundzaka close enough x)
  • 0
    So slow

    WE NEED BIG DATA
    REPLICATION
    Everrrrrything
  • 0
    Sorry. I sometimes get weird ticks when reading stuff like that....
Add Comment