Skip to content

Commit

Permalink
added query for slice of childorders
Browse files Browse the repository at this point in the history
  • Loading branch information
rumakt committed Nov 24, 2023
1 parent 61c7090 commit f9e8f95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package org.finos.vuu.data.order.ignite
import org.apache.ignite.Ignition

object CacheNodeApplication extends App {
IgniteLocalConfig.setPersistenceEnabled(true)
IgniteLocalConfig.setPersistenceEnabled(false)
val configuration = IgniteLocalConfig.create(false)

val ignite = Ignition.getOrStart(configuration)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class IgniteOrderStore(private val parentOrderCache: IgniteCache[Int, ParentOrde
}

def findWindow(startIndex: Long, rowCount: Int): Iterable[ChildOrder] = {
val query = childOrderCache.query(new SqlFieldsQuery(s"select * from ChildOrder order by id limit $rowCount offset $startIndex"))
val query = childOrderCache.query(new SqlFieldsQuery(s"select * from ChildOrder limit $rowCount offset $startIndex"))

val buffer = mutable.ListBuffer[ChildOrder]()
query.forEach(item => buffer.addOne(toChildOrder(item)))
Expand Down

0 comments on commit f9e8f95

Please sign in to comment.