I am having 4-5 fql queries in single function. Each of them taking 2-4 seconds to execute. Total 14-15 seconds are required to execute that whole function. User required to wait for long time. So I want to reduce that processing time. ( There is not well supported multi-threading concept in PHP.)

I have heard of batch request concept in graph api. And I have googled a lot but didn't understand how to use batch request for fql queries in graph api.

Can anyone give explanation with example for using batch request of fql queries ?

There is no any relation between my those queries. In FQL Multiquery execution of queries from 1st to last. I have tried FQL Multiquery this also it gives same processing time. So I want to do by batch request which works same as multithreading on facebook side.
–
Somnath MulukMar 9 '12 at 10:22

Ok, anyway it's impossible that's it's not better in time execution, for the simple reason that you make 1 HTTP GET instead of 4-5. Perhaps not much but it is surely better ask all in one call instead of more.
–
thermzMar 9 '12 at 10:30

I also have read that. That gives batch request of api methods. Please can you give solution for batch request of fql queries in graph api? I am interested in that.
–
Somnath MulukMar 9 '12 at 11:26

Sorry but I don't understand what you want. Using multiquery is exactly that - batch request of fql queries. You get the data of N queries in a single call.
–
Alexander NenkovMar 9 '12 at 11:48

1

This is from their site: Thus, fql.multiquery reduces the number of API calls you need to make to Facebook. Even if you use the existing batch.run method to perform multiple simultaneous queries, you'd still have to wait for the results of a given query before you could use those results in another query. Also, fql.multiquery can perform better than batch.run as it batches more intelligently. You can order the queries in the call as you see fit; Facebook processes the queries in parallel as much as possible.
–
Alexander NenkovMar 9 '12 at 12:02