Ahmed bahaa
Posts: 0
Joined: Sat Apr 12, 2014 4:10 am

Database Service doesn't work

Hi,
I have a collection(doctors) in the Database, it contains 132 records. and I have a Database Service that list all the records of this collection. The problem is when I tested this Database service it didn't get all the records.

It's really bad because i insert these records into sqlite Database, but now i ended with missing data and my app will not work as it should.

What can I do?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Database Service doesn't work

Hi Ahmed -

Please provide more information how you executing your DB service and what are the settings are setup?

Ahmed bahaa
Posts: 0
Joined: Sat Apr 12, 2014 4:10 am

Database Service doesn't work

Hi lllya,

here the settings screenshot

Image

and here the test screenshot

Image

I don't understand what you mean by how do i execute the DB service .. do you mean how do i execute it inside the app?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Database Service doesn't work

Hi,

You told that you saved data to SQLite DB and can't see this data in the DB collection, this is two different DB. Could you show us how do you push data from SQLite DB to DB collection?

Ahmed bahaa
Posts: 0
Joined: Sat Apr 12, 2014 4:10 am

Database Service doesn't work

Hi,

I don't push data from SQLite DB to DB collection .. I do the opposite.

1- get data from DB collection.
2- push(insert) the data into SQLite DB.

The problem is the Database Service doesn't return all the data from the DB collection,

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Database Service doesn't work

Could you also show us example or screenshot what exactly data it doesn't return?

Ahmed bahaa
Posts: 0
Joined: Sat Apr 12, 2014 4:10 am

Database Service doesn't work

here a screenshot of doctors collection, it contains 132 doctor

Image

when i run the service test in screenshot below, it doesn't return all the 132 doctor

Image

Ahmed bahaa
Posts: 0
Joined: Sat Apr 12, 2014 4:10 am

Database Service doesn't work

that is all i did.

1- created a DB collection.
2- created a Db Service to list this DB collection.
3- tested this Db Service.
the problem occurred here and it prevent me to continue the step below:
4-insert the data into SQLight

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Database Service doesn't work

Lets try to add request "sort" parameter(see screenshot). With such case - does service return records with id: 132...124?

Image

Ahmed bahaa
Posts: 0
Joined: Sat Apr 12, 2014 4:10 am

Database Service doesn't work

1st: I just want to clarify that the problem wasn't related to records with ID: 132 to 124 only, I'd just highlighted them on the screenshot as an example.

2nd; I did what you told me, and that help me to understand the problem more.

First I did a sort in descending order, first record with id=132, last record with id=33.
the database list service only returned 100 records.

here the screenshoots for descending sort

Image

Image

Then I did a sort in ascending order, first record with id=1, last record with id=100.
again the database list service only returned 100 records.

here the screenshoots for ascending sort

Image

Image

What can I do to return all the records in the collection?

Return to “Issues”